diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-08-14 20:44:45 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2021-08-14 18:44:45 +0000 |
commit | 6f0be228b718bf494b11367b5e01c06f495dbfbf (patch) | |
tree | 6cba8d0da19769bfd374aaf19be68d6de126619f | |
parent | c0e0c2917a6d1200cc52f72469d37f4f761b1f8b (diff) | |
download | strace-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.sh | 2 |
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" |