X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fstat.c;h=9b793c967fc50833d5529ad5ba7da1fb81475bea;hb=cfe23e8;hp=49b48386536c3b9d1080de4e1549ca83576867d2;hpb=9fc81090f6c5590bd1b0e0fa5087577a2ee43a3e;p=gnulib.git diff --git a/tests/test-fstat.c b/tests/test-fstat.c index 49b483865..9b793c967 100644 --- a/tests/test-fstat.c +++ b/tests/test-fstat.c @@ -1,5 +1,5 @@ /* Tests of fstat() function. - Copyright (C) 2011-2013 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 (fstat, int, (int, struct stat *)); #include +#include #include "macros.h" @@ -39,6 +40,7 @@ main (int argc, char *argv[]) { struct stat statbuf; + close (99); errno = 0; ASSERT (fstat (99, &statbuf) == -1); ASSERT (errno == EBADF);