]> granicus.if.org Git - strace/commit
tests: check decoding of oldfstat, oldlstat, and oldstat syscalls
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 24 Oct 2016 01:50:36 +0000 (04:50 +0300)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 30 Oct 2016 21:49:28 +0000 (00:49 +0300)
commita1a42e1f0dc40cd6aeef4b0310ba6f4bca283b8e
tree0a88d5fbb883d2020526388ee3838a842a55b737
parent7497b1c700165afc51cfd67b38c29e06d8a6c8a1
tests: check decoding of oldfstat, oldlstat, and oldstat syscalls

* tests/oldfstat.c: New file.
* tests/oldlstat.c: Likewise.
* tests/oldstat.c: Likewise.
* tests/oldfstat.test: New test.
* tests/oldlstat.test: Likewise.
* tests/oldstat.test: Likewise.
* tests/xstatx.c [!OLD_STAT]: define OLD_STAT to 0.
(print_stat) [OLD_STAT]: Print predefined values for
st_blksize/st_blocks.
(print_stat): Check for !OLD_STAT in nanosecond precision checks.
(main) [OLD_STAT]: Ignore EOVERFLOW.
(main): Test for successful rc in returned size value check;
print address only on non-successful rc.
* tests/.gitignore: Add oldfstat, oldlstat, and oldstat.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add oldfstat.test, oldlstat.test, and oldstat.test.
tests/.gitignore
tests/Makefile.am
tests/oldfstat.c [new file with mode: 0644]
tests/oldfstat.test [new file with mode: 0755]
tests/oldlstat.c [new file with mode: 0644]
tests/oldlstat.test [new file with mode: 0755]
tests/oldstat.c [new file with mode: 0644]
tests/oldstat.test [new file with mode: 0755]
tests/xstatx.c