diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-08-17 03:58:41 +0200 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2021-08-17 04:00:53 +0200 |
commit | 54cfb4446f0cfeeb4584cd68e624796895b0de8d (patch) | |
tree | 410052ec9d6644ee0228c3b17da8b094a6d5d88d | |
parent | 6f0be228b718bf494b11367b5e01c06f495dbfbf (diff) | |
download | strace-54cfb4446f0cfeeb4584cd68e624796895b0de8d.tar.gz |
tests/prctl-success.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-success.sh: Relax the regular expression to allow
for arbitrary (non-zero) number of spaces.
Complements: v5.13-49-g6f0be228b "tests/prctl.sh: match strace output with -a value more than 79"
-rw-r--r-- | tests/prctl-success.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/prctl-success.sh b/tests/prctl-success.sh index e393bcd5c..2ab26023c 100644 --- a/tests/prctl-success.sh +++ b/tests/prctl-success.sh @@ -51,6 +51,6 @@ for i in $(echo "$PRCTL_INJECT_RETVALS"); do run_strace -a80 "$@" -e trace=prctl \ -e inject=prctl:"${inj_str}":when="${PRCTL_INJECT_START}+" \ "../$NAME" "${PRCTL_INJECT_START}" "${ret_val}" > "$EXP.$i" - sed '0,/^prctl(0xffffffff\( \/\* PR_??? \*\/\)\?, 0xfffffffe, 0xfffffffd, 0xfffffffc, 0xfffffffb) = '"${sed_match}"' /d' < "$LOG" > "$OUT.$i" + sed '0,/^prctl(0xffffffff\( \/\* PR_??? \*\/\)\?, 0xfffffffe, 0xfffffffd, 0xfffffffc, 0xfffffffb) *= '"${sed_match}"' /d' < "$LOG" > "$OUT.$i" match_diff "$OUT.$i" "$EXP.$i" done |