diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-08-05 14:14:41 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-08-05 14:14:41 -0700 |
commit | f739fc81c0d7ad4ed4c82598a21852dbad7ca357 (patch) | |
tree | 7e92dfa718b95156623e792b170488a098d319f8 /tests/stat/test_chmod.c | |
parent | 4f95207941b870b949e75d6c8838f9474502fed5 (diff) |
Removed USE_OLD_FS
Diffstat (limited to 'tests/stat/test_chmod.c')
-rw-r--r-- | tests/stat/test_chmod.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/stat/test_chmod.c b/tests/stat/test_chmod.c index 94e6c12b..cb84e028 100644 --- a/tests/stat/test_chmod.c +++ b/tests/stat/test_chmod.c @@ -55,11 +55,7 @@ void test() { memset(&s, 0, sizeof s); stat("file", &s); -#if USE_OLD_FS - assert(s.st_mode == (0222 | S_IFREG)); -#else assert(s.st_mode == (0200 | S_IFREG)); -#endif assert(s.st_ctime != lastctime); // @@ -73,11 +69,7 @@ void test() { memset(&s, 0, sizeof s); stat("file", &s); -#if USE_OLD_FS - assert(s.st_mode == (0000 | S_IFREG)); -#else assert(s.st_mode == (0100 | S_IFREG)); -#endif assert(s.st_ctime != lastctime); // @@ -94,11 +86,7 @@ void test() { assert(!err); memset(&s, 0, sizeof s); stat("folder", &s); -#if USE_OLD_FS - assert(s.st_mode == (0222 | S_IFDIR)); -#else assert(s.st_mode == (0300 | S_IFDIR)); -#endif assert(s.st_ctime != lastctime); // @@ -109,11 +97,7 @@ void test() { // make sure the file it references changed stat("file-link", &s); -#if USE_OLD_FS - assert(s.st_mode == (0555 | S_IFREG)); -#else assert(s.st_mode == (0400 | S_IFREG)); -#endif // but the link didn't lstat("file-link", &s); @@ -127,19 +111,11 @@ void test() { // make sure the file it references didn't change stat("file-link", &s); -#if USE_OLD_FS - assert(s.st_mode == (0555 | S_IFREG)); -#else assert(s.st_mode == (0400 | S_IFREG)); -#endif // but the link did lstat("file-link", &s); -#if USE_OLD_FS - assert(s.st_mode == (0555 | S_IFLNK)); -#else assert(s.st_mode == (0500 | S_IFLNK)); -#endif puts("success"); } |