From: Dmitry V. Levin Date: Fri, 15 Jan 2016 00:10:00 +0000 (+0000) Subject: llseek.test: robustify against libcs invoking _llseek syscall on their own X-Git-Tag: v4.12~636 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=972018f2eac793913711a5fc26d651645d5579d6;p=strace llseek.test: robustify against libcs invoking _llseek syscall on their own * tests/llseek.test: Filter out _llseek calls made with non-negative descriptor arguments. --- diff --git a/tests/llseek.test b/tests/llseek.test index bb759510..2c0ee512 100755 --- a/tests/llseek.test +++ b/tests/llseek.test @@ -4,10 +4,15 @@ . "${srcdir=.}/init.sh" -run_prog > /dev/null OUT="$LOG.out" -run_strace -e_llseek $args > "$OUT" -match_diff "$LOG" "$OUT" -rm -f "$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