]> granicus.if.org Git - strace/commitdiff
tests: robustify prctl-arg2-intptr.test
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 28 Dec 2016 01:24:31 +0000 (01:24 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 28 Dec 2016 01:24:31 +0000 (01:24 +0000)
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

index 500399a743ef3d5f719b1b8f55a60f9e8390efcd..bcef806503ede60cc5a5c39cff8d9904f8533048 100755 (executable)
@@ -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"