diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2016-01-15 00:10:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2016-01-15 00:10:00 +0000 |
commit | 972018f2eac793913711a5fc26d651645d5579d6 (patch) | |
tree | 85515621bc498af3c0d186935968a304c2e93f98 /tests/llseek.test | |
parent | 8e37cffaa83653fdf910f25ca23ccf416c01846d (diff) | |
download | strace-972018f2eac793913711a5fc26d651645d5579d6.tar.gz |
llseek.test: robustify against libcs invoking _llseek syscall on their own
* tests/llseek.test: Filter out _llseek calls made with non-negative
descriptor arguments.
Diffstat (limited to 'tests/llseek.test')
-rwxr-xr-x | tests/llseek.test | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/llseek.test b/tests/llseek.test index bb7595103..2c0ee5123 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 |