strace/tests/fadvise64.test
Eugene Syromyatnikov a2402cea20 tests: check decoding of fadvise64 and fadvise64_64 syscalls
* tests/fadvise.h: New file.
* tests/fadvise64.c: Likewise.
* tests/fadvise64_64.c: Likewise.
* tests/fadvise64.test: New test.
* tests/fadvise64_64.test: Likewise.
* tests/.gitignore: Add fadvise64 and fadvise64_64.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add fadvise64.test, fadvise64_64.test.
(EXTRA_DIST): Add fadvise.h.
2016-09-28 03:00:10 +00:00

13 lines
236 B
Bash
Executable File

#!/bin/sh
# Check decoding of fadvise64 syscall.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
run_strace -e $NAME $args > "$EXP"
check_prog grep
grep -v "^$NAME([0123]," < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"
rm -f "$EXP" "$OUT"