From 54cfb4446f0cfeeb4584cd68e624796895b0de8d Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Tue, 17 Aug 2021 03:58:41 +0200 Subject: 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" --- tests/prctl-success.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1