X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fchown.c;h=6ee3fe3e4e1ccd26f49216b02f19024e1c59acc8;hb=fa1db0dd22768f09a507674a30beb5b8a87bb35f;hp=a7e98047715548e37070d317b235cf6afe8d52d3;hpb=84171bbf1adc7c4ac23b29696f47c089e2374dbb;p=gnulib.git diff --git a/tests/test-fchown.c b/tests/test-fchown.c index a7e980477..6ee3fe3e4 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-2013 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);