X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-shutdown.c;h=d49460965dfb6d6b1e746113538627c343885563;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=be9f55005ababb8c4e167c9850f1a65a2d0f5e9c;hpb=3888ec889ae709349cc7d9f7c1707dedbff2e130;p=gnulib.git diff --git a/tests/test-shutdown.c b/tests/test-shutdown.c index be9f55005..d49460965 100644 --- a/tests/test-shutdown.c +++ b/tests/test-shutdown.c @@ -1,5 +1,5 @@ /* Test the shutdown() function. - Copyright (C) 2011-2012 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 (shutdown, int, (int, int)); #include +#include #include "sockets.h" #include "macros.h" @@ -38,6 +39,7 @@ main (void) ASSERT (errno == EBADF); } { + close (99); errno = 0; ASSERT (shutdown (99, SHUT_RD) == -1); ASSERT (errno == EBADF);