summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2021-08-17 03:58:41 +0200
committerEugene Syromyatnikov <evgsyr@gmail.com>2021-08-17 04:00:53 +0200
commit54cfb4446f0cfeeb4584cd68e624796895b0de8d (patch)
tree410052ec9d6644ee0228c3b17da8b094a6d5d88d
parent6f0be228b718bf494b11367b5e01c06f495dbfbf (diff)
downloadstrace-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.sh2
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