diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-10-08 00:13:07 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-10-08 00:13:07 +0200 |
commit | d41be3da4b14bc8480dfc3abc234de41199126aa (patch) | |
tree | 7488b0b1e9a982e06fe352838de906199f1f48e9 /tests/runtests.pl | |
parent | 7d8c89d47b459e104125dc900251d0bd07c6fd79 (diff) | |
download | curl-bagder/runtests-notests-fail.tar.gz |
runtests: return error if no tests ranbagder/runtests-notests-fail
... and make TESTFAIL stand out a little better by adding newlines
before and after.
Reported-by: Marc Hörsken
Issue: #6052
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-x | tests/runtests.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index a45519c51..07cc53e17 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -5775,11 +5775,11 @@ if($total) { $ok/$total*100); if($ok != $total) { - logmsg "TESTFAIL: These test cases failed: $failed\n"; + logmsg "\nTESTFAIL: These test cases failed: $failed\n\n"; } } else { - logmsg "TESTFAIL: No tests were performed\n"; + logmsg "\nTESTFAIL: No tests were performed\n\n"; } if($all) { @@ -5816,6 +5816,6 @@ if($skipped && !$short) { } } -if($total && (($ok+$ign) != $total)) { +if(($total && (($ok+$ign) != $total)) || !$total) { exit 1; } |