From a1db90053b404fe2068512cd6c5f6e88cb327392 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 12 Jun 2026 14:52:18 +0200 Subject: [PATCH] runtests: exit hard on duplicate test name To make the mistake more noticeable Closes #21991 --- tests/runtests.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index d4be6b435c..c35f1bd237 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -1249,7 +1249,7 @@ sub singletest_count { logmsg sprintf("ERROR: test %d has duplicate test name: \"%s\". ". "The same as test %d\n", $testnum, $testname, $allnames{$testname}); - return -1; + exit 1; } # store which test that uses this name $allnames{$testname} = $testnum;