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:
parent
19d10f8965
commit
8e37cffaa8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user