a2402cea20
* 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.
13 lines
236 B
Bash
Executable File
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"
|