From: Ruediger Meier Date: Thu, 7 May 2015 13:20:47 +0000 (+0200) Subject: tests: fix kill/all_processes X-Git-Tag: v2.27-rc1~203^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be8d50fe3517bcb7130b7db0c4bcc3f090b79142;p=thirdparty%2Futil-linux.git tests: fix kill/all_processes We have to wait for the killed helper. Signed-off-by: Ruediger Meier --- diff --git a/tests/ts/kill/all_processes b/tests/ts/kill/all_processes index 93f78ad60d..2596ef02b6 100755 --- a/tests/ts/kill/all_processes +++ b/tests/ts/kill/all_processes @@ -39,11 +39,14 @@ echo "test 1" >> "$TS_OUTPUT" if [ $? -ne 1 ]; then echo "kill did not return 1" >> "$TS_OUTPUT" fi + echo "test 2" >> "$TS_OUTPUT" "$TS_CMD_KILL" -a ${HELPER_SYMLINK##*/} >> "$TS_OUTPUT" 2>&1 if [ $? -ne 0 ]; then echo "kill did not return 0" >> "$TS_OUTPUT" fi +wait $TEST_PID + echo "test 3" >> "$TS_OUTPUT" "$TS_CMD_KILL" -a -p ${HELPER_SYMLINK##*/} >> "$TS_OUTPUT" 2>&1 if [ $? -ne 1 ]; then