X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-pread.c;h=4416bd162109f7069b96455085f5b5d517799fed;hb=23eecb48e39afd0d267d64d40ba6bf97aa865e13;hp=1656f5c1499ebce0e534579fde6a1f64b6dbfac0;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/tests/test-pread.c b/tests/test-pread.c index 1656f5c14..4416bd162 100644 --- a/tests/test-pread.c +++ b/tests/test-pread.c @@ -1,5 +1,5 @@ /* Test the pread function. - Copyright (C) 2009-2012 Free Software Foundation, Inc. + Copyright (C) 2009-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 @@ -92,6 +92,7 @@ main (void) } { char byte; + close (99); errno = 0; ASSERT (pread (99, &byte, 1, 0) == -1); ASSERT (errno == EBADF);