X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sys_stat.c;h=5f1aacd1cc982ac7ce1dbed4618097676613dd1e;hb=aae58b6f7bd0f7c2f38e05eb005b76c164c5c1f7;hp=25fe30d08fdba8279c2f63db6ec8911482ec4a3b;hpb=080cbfcab5a4ddf2405c018aa7c7f95ac336a465;p=gnulib.git diff --git a/tests/test-sys_stat.c b/tests/test-sys_stat.c index 25fe30d08..5f1aacd1c 100644 --- a/tests/test-sys_stat.c +++ b/tests/test-sys_stat.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007-2009 Free Software Foundation, Inc. + Copyright (C) 2007-2010 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 @@ -253,6 +253,23 @@ verify (!S_ISWHT (S_IFLNK)); verify (!S_ISWHT (S_IFSOCK)); #endif +/* POSIX 2008 requires traditional encoding of permission constants. */ +verify (S_IRWXU == 00700); +verify (S_IRUSR == 00400); +verify (S_IWUSR == 00200); +verify (S_IXUSR == 00100); +verify (S_IRWXG == 00070); +verify (S_IRGRP == 00040); +verify (S_IWGRP == 00020); +verify (S_IXGRP == 00010); +verify (S_IRWXO == 00007); +verify (S_IROTH == 00004); +verify (S_IWOTH == 00002); +verify (S_IXOTH == 00001); +verify (S_ISUID == 04000); +verify (S_ISGID == 02000); +verify (S_ISVTX == 01000); + #if ((0 <= UTIME_NOW && UTIME_NOW < 1000000000) \ || (0 <= UTIME_OMIT && UTIME_OMIT < 1000000000) \ || UTIME_NOW == UTIME_OMIT) @@ -262,8 +279,10 @@ invalid UTIME macros /* Check the existence of some types. */ nlink_t t1; +struct timespec t2; + int -main () +main (void) { return 0; }