Rrobustify remaining prctl tests against unrelated prctl invocations
* tests/prctl-pdeathsig.test: Filter out unrelated PR_GET_* and PR_SET_*
prctl calls.
* tests/prctl-tsc.test: Likewise.
# Check prctl PR_GET_PDEATHSIG PR_SET_PDEATHSIG decoding.
. "${srcdir=.}/init.sh"
-run_strace_match_diff -a30 -e trace=prctl
+
+check_prog grep
+run_prog > /dev/null
+run_strace -a30 -eprctl $args > "$EXP"
+grep -v '^prctl(PR_[GS]ET_[^P][^D]' < "$LOG" > "$OUT"
+match_diff "$OUT" "$EXP"
+
+rm -f "$EXP" "$OUT"
# Check prctl PR_GET_TSC PR_SET_TSC decoding.
. "${srcdir=.}/init.sh"
-run_strace_match_diff -a24 -e trace=prctl
+
+check_prog grep
+run_prog > /dev/null
+run_strace -a24 -eprctl $args > "$EXP"
+grep -v '^prctl(PR_[GS]ET_[^T][^S]' < "$LOG" > "$OUT"
+match_diff "$OUT" "$EXP"
+
+rm -f "$EXP" "$OUT"