X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-vdprintf.c;h=7f669a75f7588653bbdcef5e1a4b3307931e7c8b;hb=69770559f5bf198928150ac8162734d7f6b99c82;hp=8dff998face515a8b86384ffcc694ee1d719d37a;hpb=80a029602f5b2707ca8d2487843ecb9e0df74a6a;p=gnulib.git diff --git a/tests/test-vdprintf.c b/tests/test-vdprintf.c index 8dff998fa..7f669a75f 100644 --- a/tests/test-vdprintf.c +++ b/tests/test-vdprintf.c @@ -1,5 +1,5 @@ /* Test of vdprintf() function. - Copyright (C) 2011-2012 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 @@ -22,6 +22,7 @@ SIGNATURE_CHECK (vdprintf, int, (int, const char *, va_list)); #include +#include #include "macros.h" @@ -47,6 +48,7 @@ main (int argc, char *argv[]) ASSERT (errno == EBADF); } { + close (99); errno = 0; ASSERT (my_dprintf (99, "test") == -1); ASSERT (errno == EBADF);