]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: fix kill/all_processes
authorRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 7 May 2015 13:20:47 +0000 (15:20 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Fri, 8 May 2015 13:12:00 +0000 (15:12 +0200)
We have to wait for the killed helper.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/ts/kill/all_processes

index 93f78ad60dff4fbd56a615103dbc271574b67369..2596ef02b6bfb82393e90bbf7c59a1989bde6841 100755 (executable)
@@ -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