Skip to content

Commit f30458e

Browse files
committed
add a test for pid monitoring
Change-Id: I2242833945192929df620ba784d2a50b19ce9718
1 parent efec165 commit f30458e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ if [ "$?" -ne "0" ]; then
2222
exit 1
2323
fi
2424

25+
perl -e ' do {} until (0)' &
26+
test_pid="$?"
27+
./pcm -pid $test_pid -- sleep 1
28+
if [ "$?" -ne "0" ]; then
29+
echo "Error in pcm"
30+
kill $perl_pid
31+
exit 1
32+
fi
33+
kill $test_pid
34+
2535
./pcm -r 0.1 -csv=pcm.csv -- sleep 5
2636
if [ "$?" -ne "0" ]; then
2737
echo "Error in pcm"

0 commit comments

Comments
 (0)