From a7aed4a57d4113ea4cd906a7ac2fdb44e84f756e Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 28 Dec 2016 01:24:31 +0000 Subject: [PATCH] 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. --- tests/prctl-arg2-intptr.test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.40.0