X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-futimens.h;h=13e7d92a1b980673f5c245a8ac69252b60bf688f;hb=96f8fde75f5197ff2d68e616ef41532b96fba64f;hp=ab86ae2171e9b36703328871e93966b4e2a74a88;hpb=89b0db35db10a8beccaf83909c7f62f127fb5821;p=gnulib.git diff --git a/tests/test-futimens.h b/tests/test-futimens.h index ab86ae217..13e7d92a1 100644 --- a/tests/test-futimens.h +++ b/tests/test-futimens.h @@ -1,5 +1,5 @@ /* Test of file timestamp modification functions. - Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2009-2011 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 @@ -77,6 +77,9 @@ test_futimens (int (*func) (int, struct timespec const *), errno = 0; ASSERT (func (AT_FDCWD, NULL) == -1); ASSERT (errno == EBADF); + errno = 0; + ASSERT (func (-1, NULL) == -1); + ASSERT (errno == EBADF); { struct timespec ts[2] = { { Y2K, UTIME_BOGUS_POS }, { Y2K, 0 } }; errno = 0;