X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-read.c;h=74b5b4df19e60d7072413fb60473579874f370de;hb=bbfcd2f1a92c9bdbb8d7d7d0a8a8c6665c316747;hp=58f8eebcf118b40922f616a10aebed0b9487630b;hpb=b302fb5c83f46846a5bb7b57de878350f4a5c070;p=gnulib.git diff --git a/tests/test-read.c b/tests/test-read.c index 58f8eebcf..74b5b4df1 100644 --- a/tests/test-read.c +++ b/tests/test-read.c @@ -1,5 +1,5 @@ /* Test the read() function. - 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 @@ -60,6 +60,7 @@ main (void) } { char byte; + close (99); errno = 0; ASSERT (read (99, &byte, 1) == -1); ASSERT (errno == EBADF);