]> granicus.if.org Git - strace/commitdiff
Revert "tests/xstatx.c: fix stat syscall tests on mips64"
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 24 Aug 2016 00:29:47 +0000 (00:29 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 24 Aug 2016 15:33:34 +0000 (15:33 +0000)
Previous commit effectively changed types of st_atime, st_ctime, and
st_mtime members of struct stat and struct stat64 to signed integers,
making the mips64 workaround obsolete.

This reverts commit 3fb84bfc79949c145197c61fbf04ce18464e9112.

* tests/xstatx.c (create_sample) [__mips64]: Remove.

tests/xstatx.c

index 24867acc0a0d46223063ae69d054907ef3d4331a..48b36873ead3a100e80c4d7a913df3ac51773f2f 100644 (file)
@@ -188,12 +188,7 @@ static int
 create_sample(const char *fname, const libc_off_t size)
 {
        static const struct timespec ts[] = {
-#ifdef __mips64
-               // On mips64, struct stat cannot handle negative timestamps
-               {10841, 246}, {10843, 135}
-#else
                {-10843, 135}, {-10841, 246}
-#endif
        };
 
        (void) close(0);