summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2021-08-14 20:44:45 +0200
committerDmitry V. Levin <ldv@strace.io>2021-08-14 18:44:45 +0000
commit6f0be228b718bf494b11367b5e01c06f495dbfbf (patch)
tree6cba8d0da19769bfd374aaf19be68d6de126619f
parentc0e0c2917a6d1200cc52f72469d37f4f761b1f8b (diff)
downloadstrace-6f0be228b718bf494b11367b5e01c06f495dbfbf.tar.gz
tests/prctl.sh: match strace output with -a value more than 79
For some tests it is instructive to set -a to value more than 79; the issue is that this alignment width is more than the marker output, which leads to a match failure. To avoid that, allow for arbitrary number of spaces before the syscall return value. * tests/prctl.sh: Relax the regular expression to allow for arbitrary (non-zero) number of spaces.
-rw-r--r--tests/prctl.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/prctl.sh b/tests/prctl.sh
index bc2c8b1a0..2e50aeeee 100644
--- a/tests/prctl.sh
+++ b/tests/prctl.sh
@@ -12,5 +12,5 @@
check_prog sed
run_prog > /dev/null
run_strace -eprctl "$@" $args > "$EXP"
-sed '0,/^prctl(0xffffffff\( \/\* PR_??? \*\/\)\?, 0xfffffffe, 0xfffffffd, 0xfffffffc, 0xfffffffb) = -1 /d' < "$LOG" > "$OUT"
+sed '0,/^prctl(0xffffffff\( \/\* PR_??? \*\/\)\?, 0xfffffffe, 0xfffffffd, 0xfffffffc, 0xfffffffb) *= -1 /d' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"