]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: always kill helper
authorRuediger Meier <ruediger.meier@ga-group.nl>
Fri, 8 May 2015 22:34:12 +0000 (00:34 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 16 Jun 2015 14:22:49 +0000 (16:22 +0200)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/ts/kill/print_pid

index 1b3052bb8e7667baf6ce34a2c42813ee2a022fd5..c6187f192ddb8b5ce8cd44ee6165cb952f981c8b 100755 (executable)
@@ -41,13 +41,13 @@ fi
 if [ "x$TEST_PID" != "x$KILL_PID" ]; then
        echo "jobs -p $TEST_PID != kill -p $KILL_PID" >> "$TS_OUTPUT"
        all_ok=false
-else
-       "$TS_CMD_KILL" -1 $TEST_PID
-       wait $TEST_PID
-       if [ $? -ne 1 ]; then
-               echo "wait $TEST_PID returned ${?}" >> "$TS_OUTPUT"
-               all_ok=false
-       fi
+fi
+
+"$TS_CMD_KILL" -1 $TEST_PID
+wait $TEST_PID
+if [ $? -ne 1 ]; then
+       echo "wait $TEST_PID returned ${?}" >> "$TS_OUTPUT"
+       all_ok=false
 fi
 
 if $all_ok; then