strace/tests/llseek.test
Dmitry V. Levin 972018f2ea llseek.test: robustify against libcs invoking _llseek syscall on their own
* tests/llseek.test: Filter out _llseek calls made with non-negative
descriptor arguments.
2016-01-15 00:10:00 +00:00

19 lines
270 B
Bash
Executable File

#!/bin/sh
# Check _llseek syscall decoding.
. "${srcdir=.}/init.sh"
OUT="$LOG.out"
EXP="$LOG.exp"
check_prog grep
run_prog > /dev/null
run_strace -e_llseek $args > "$EXP"
grep -v '^lseek([0-9]' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"
rm -f "$EXP" "$OUT"
exit 0