]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Revert changes to use timeout command (restart was targeting timeout PID
authorMichael R Sweet <msweet@msweet.org>
Sun, 8 Jun 2025 15:44:41 +0000 (11:44 -0400)
committerMichael R Sweet <msweet@msweet.org>
Sun, 8 Jun 2025 15:44:41 +0000 (11:44 -0400)
test/run-stp-tests.sh

index 2988a0d66bd7e91c8c4f8ad2c2e6ee175513c6ff..0f4309a5eaf0272422af7fb5c5b729cf33e7f0ce 100755 (executable)
@@ -666,33 +666,11 @@ export LC_MESSAGES
 # Start the server; run as foreground daemon in the background...
 #
 
-if test "x$VALGRIND" != x; then
-       # Wrap cupsd with Valgrind
-       WRAPPER="$VALGRIND"
-elif test "x$testtype" = x0; then
-       # Don't limit run time...
-       WRAPPER=""
-elif test -x /usr/bin/timeout; then
-       # Limit run time to 5 minutes
-       echo "Limiting run time to 5 minutes..."
-       echo ""
-
-       WRAPPER="/usr/bin/timeout --foreground 5m"
-else
-       # No timeout command, just try limiting CPU time...
-       echo "Limiting CPU time to 5 minutes (300 seconds):"
-       echo "    limit -t 300"
-       echo ""
-
-       limit -t 300
-       WRAPPER=""
-fi
-
 echo "Starting scheduler:"
-echo "    $runcups $WRAPPER ../scheduler/cupsd -c $BASE/cupsd.conf -f >$BASE/log/debug_log 2>&1 &"
+echo "    $runcups $VALGRIND ../scheduler/cupsd -c $BASE/cupsd.conf -f >$BASE/log/debug_log 2>&1 &"
 echo ""
 
-$runcups $WRAPPER ../scheduler/cupsd -c $BASE/cupsd.conf -f >$BASE/log/debug_log 2>&1 &
+$runcups $VALGRIND ../scheduler/cupsd -c $BASE/cupsd.conf -f >$BASE/log/debug_log 2>&1 &
 
 cupsd=$!