]> granicus.if.org Git - strace/commit
tests/xstatx.c: fix stat syscall tests on mips64
authorJames Cowgill <james410@cowgill.org.uk>
Thu, 11 Aug 2016 16:33:01 +0000 (16:33 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 11 Aug 2016 16:45:23 +0000 (16:45 +0000)
commit3fb84bfc79949c145197c61fbf04ce18464e9112
treefcc5272246e2d160ae04286944a846ea9268e1e1
parent0bc735e5aa4bd34aa73c12b6d3ba01f79591853e
tests/xstatx.c: fix stat syscall tests on mips64

For historical reasons the kernel struct stat represents times as unsigned
32-bit integers on mips64. Therefore, while it's possible to give a file a
timestamp before 1970 with futimens, reading the same timestamp through
struct stat will give a positive time (around 2106).
Workaround by using positive timestamps for testing on mips64.

* tests/xstatx.c (create_sample): Use positive timestamps on mips64.
tests/xstatx.c