From: Dmitry V. Levin Date: Wed, 28 Dec 2016 01:24:31 +0000 (+0000) Subject: tests: robustify prctl-arg2-intptr.test X-Git-Tag: v4.16~134 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7aed4a57d4113ea4cd906a7ac2fdb44e84f756e;p=strace tests: robustify prctl-arg2-intptr.test Robustify prctl-arg2-intptr.test against unrelated prctl invocations. * tests/prctl-arg2-intptr.test: Filter out unrelated PR_GET_* and PR_SET_* prctl calls. --- diff --git a/tests/prctl-arg2-intptr.test b/tests/prctl-arg2-intptr.test index 500399a7..bcef8065 100755 --- a/tests/prctl-arg2-intptr.test +++ b/tests/prctl-arg2-intptr.test @@ -7,7 +7,8 @@ check_prog grep run_prog > /dev/null run_strace -a25 -eprctl $args > "$EXP" -grep -v '^prctl(PR_[GS]ET_[^CEF][^HNP][^DEI]' < "$LOG" > "$OUT" +LC_ALL=C grep -Ev '^prctl\(PR_[GS]ET_([^CEF]|.[^HNP]|..[^DEI])' \ + < "$LOG" > "$OUT" match_diff "$OUT" "$EXP" rm -f "$EXP" "$OUT"