diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2011-03-03 00:10:20 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2011-03-03 00:10:20 +0000 |
commit | f9a84ef39fdbfe9636837c99beff52d62a7b8127 (patch) | |
tree | f5b54c38e368cbab7e4d459cda07373fbe7b7bd0 /tests | |
parent | e689e04c102d02514af429925ef3b00caaacd058 (diff) | |
download | strace-f9a84ef39fdbfe9636837c99beff52d62a7b8127.tar.gz strace-f9a84ef39fdbfe9636837c99beff52d62a7b8127.tar.bz2 strace-f9a84ef39fdbfe9636837c99beff52d62a7b8127.tar.xz |
tests: avoid SIGPIPE
* tests/ptrace_setoptions: Replace "grep -q" with "grep > /dev/null".
The former may result to strace being killed by SIGPIPE, which in
certain configuratons may lead to generation of a core file.
Suggested by Mike Frysinger.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ptrace_setoptions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ptrace_setoptions b/tests/ptrace_setoptions index b0a1c87..4bfe38d 100755 --- a/tests/ptrace_setoptions +++ b/tests/ptrace_setoptions @@ -13,6 +13,6 @@ check_strace check_prog timeout timeout -s 9 9 \ -$STRACE -df -enone /bin/true 2>&1 | - fgrep -qx 'ptrace_setoptions = 0xe' || +$STRACE -df -enone / 2>&1 | + grep -F -x 'ptrace_setoptions = 0xe' > /dev/null || fail_ 'strace failed to recognize proper kernel PTRACE_O_TRACECLONE support' |