runtests: exit hard on duplicate test name

To make the mistake more noticeable

Closes #21991
This commit is contained in:
Daniel Stenberg 2026-06-12 14:52:18 +02:00
parent 5b9263e5d7
commit a1db90053b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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;