X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-pwrite.c;h=c9cb09469092c60041e50ae45bd1ba67969e0068;hb=69770559f5bf198928150ac8162734d7f6b99c82;hp=909149ab57605ad52ef40a1c21cd375b9830872b;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/tests/test-pwrite.c b/tests/test-pwrite.c index 909149ab5..c9cb09469 100644 --- a/tests/test-pwrite.c +++ b/tests/test-pwrite.c @@ -1,5 +1,5 @@ /* Test the pwrite 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 @@ -86,6 +86,7 @@ main (void) } { char byte = 'x'; + close (99); errno = 0; ASSERT (pwrite (99, &byte, 1, 0) == -1); ASSERT (errno == EBADF);