X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-unlockpt.c;h=6864b7cbde0a348a86b9aec52fa9f758f7752869;hb=458c944ddbb41cd6ba34416db2867eb6f17bf61a;hp=4717e7d83bb2c6b0c7eee789216e88b1dcadf51b;hpb=03f0d3e22b969990f3a55f2540a9f82680028602;p=gnulib.git diff --git a/tests/test-unlockpt.c b/tests/test-unlockpt.c index 4717e7d83..6864b7cbd 100644 --- a/tests/test-unlockpt.c +++ b/tests/test-unlockpt.c @@ -1,5 +1,5 @@ /* Test unlocking of the slave side of a pseudo-terminal. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,6 +22,7 @@ SIGNATURE_CHECK (unlockpt, int, (int)); #include +#include #include "macros.h" @@ -38,6 +39,7 @@ main (void) ); } { + close (99); errno = 0; ASSERT (unlockpt (99) == -1); ASSERT (errno == EBADF