diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-02 13:17:30 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-02 13:17:30 -0500 |
commit | 545996b3170de4f122c3206a4b4dabac25287b2b (patch) | |
tree | 3c641ffa7c25288a2f0eda24fbcb7de7e7b88587 /pts-core/test-libraries | |
parent | 0db69cc24d2ee40d3b049b5fac7eb3b14dcafa52 (diff) | |
download | phoronix-test-suite-upstream-545996b3170de4f122c3206a4b4dabac25287b2b.tar.gz phoronix-test-suite-upstream-545996b3170de4f122c3206a4b4dabac25287b2b.tar.xz phoronix-test-suite-upstream-545996b3170de4f122c3206a4b4dabac25287b2b.zip |
pts-core: Add timed kill infrasturcture to kill a process from a test
script by calling $TIMED_KILL <process_name> <time_in_seconds>
Diffstat (limited to 'pts-core/test-libraries')
-rwxr-xr-x | pts-core/test-libraries/timed-kill.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pts-core/test-libraries/timed-kill.sh b/pts-core/test-libraries/timed-kill.sh new file mode 100755 index 0000000..ffb0661 --- /dev/null +++ b/pts-core/test-libraries/timed-kill.sh @@ -0,0 +1,3 @@ +#!/bin/sh +(sleep $2; killall -9 $1) > /dev/null 2>&1 & + |