X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fchown.c;h=2f897d2f46dfb3c17be6b4bd5ed0c136f3fd62f9;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=a7e98047715548e37070d317b235cf6afe8d52d3;hpb=84171bbf1adc7c4ac23b29696f47c089e2374dbb;p=gnulib.git diff --git a/tests/test-fchown.c b/tests/test-fchown.c index a7e980477..2f897d2f4 100644 --- a/tests/test-fchown.c +++ b/tests/test-fchown.c @@ -1,5 +1,5 @@ /* Tests of fchown. - 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 @@ -35,6 +35,7 @@ main (int argc, char *argv[]) ASSERT (errno == EBADF); } { + close (99); errno = 0; ASSERT (fchown (99, getuid (), getgid ()) == -1); ASSERT (errno == EBADF);