From: Dmitry V. Levin Date: Wed, 23 Nov 2016 00:38:03 +0000 (+0000) Subject: tests: robustify prctl-name.test against unrelated prctl invocations X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6daba2ec292ccc6372a42781a81a2bd4eb270e10;p=strace tests: robustify prctl-name.test against unrelated prctl invocations * tests/prctl-name.test: Filter out unrelated PR_GET_* prctl calls. --- diff --git a/tests/prctl-name.test b/tests/prctl-name.test index e258c111..071179c5 100755 --- a/tests/prctl-name.test +++ b/tests/prctl-name.test @@ -3,4 +3,10 @@ # Check decoding of prctl PR_GET_NAME/PR_SET_NAME operations. . "${srcdir=.}/init.sh" -run_strace_match_diff -a23 -e trace=prctl +check_prog grep +run_prog > /dev/null +run_strace -a23 -eprctl $args > "$EXP" +grep -v '^prctl(PR_GET_[^N][^A]' < "$LOG" > "$OUT" +match_diff "$OUT" "$EXP" + +rm -f "$EXP" "$OUT"