From 972018f2eac793913711a5fc26d651645d5579d6 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 15 Jan 2016 00:10:00 +0000 Subject: [PATCH] llseek.test: robustify against libcs invoking _llseek syscall on their own * tests/llseek.test: Filter out _llseek calls made with non-negative descriptor arguments. --- tests/llseek.test | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 -- 2.40.0