From: Dmitry V. Levin Date: Fri, 15 Jan 2016 00:09:48 +0000 (+0000) Subject: lseek.test: robustify against libcs invoking lseek syscall on their own X-Git-Tag: v4.12~637 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e37cffaa83653fdf910f25ca23ccf416c01846d;p=strace lseek.test: robustify against libcs invoking lseek syscall on their own * tests/lseek.test: Filter out lseek calls made with non-negative descriptor arguments. --- diff --git a/tests/lseek.test b/tests/lseek.test index 2d5b38dd..35c2b70a 100755 --- a/tests/lseek.test +++ b/tests/lseek.test @@ -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