X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-futimens.h;h=13e7d92a1b980673f5c245a8ac69252b60bf688f;hb=96f8fde75f5197ff2d68e616ef41532b96fba64f;hp=a0312b7f883ee1956daf36aaaffa990288ea3756;hpb=0afab138f4aedb7eaab70957c164aa0e5eb01fce;p=gnulib.git diff --git a/tests/test-futimens.h b/tests/test-futimens.h index a0312b7f8..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 @@ -75,6 +75,9 @@ test_futimens (int (*func) (int, struct timespec const *), /* Invalid arguments. */ errno = 0; + ASSERT (func (AT_FDCWD, NULL) == -1); + ASSERT (errno == EBADF); + errno = 0; ASSERT (func (-1, NULL) == -1); ASSERT (errno == EBADF); {