lseek.test: robustify against libcs invoking lseek syscall on their own

* tests/lseek.test: Filter out lseek calls made with non-negative
descriptor arguments.
This commit is contained in:
Дмитрий Левин 2016-01-15 00:09:48 +00:00
parent 19d10f8965
commit 8e37cffaa8

View File

@ -4,10 +4,15 @@
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
run_strace -a30 -elseek $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"
EXP="$LOG.exp"
check_prog grep
run_prog > /dev/null
run_strace -a30 -elseek $args > "$EXP"
grep -v '^lseek([0-9]' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"
rm -f "$EXP" "$OUT"
exit 0