summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-10-08 00:13:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-10-15 15:50:11 +0200
commit88bf689f94bc5717f1826192fbe2bea252804bcb (patch)
tree6f5f5dbdef36e6fc6c0dc6106ce0e9db756671cb /tests
parent621e147ca744490bf5fb16b551db0545df7b480b (diff)
downloadcurl-88bf689f94bc5717f1826192fbe2bea252804bcb.tar.gz
runtests: return error if no tests ran
... and make TESTFAIL stand out a little better by adding newlines before and after. Reported-by: Marc Hörsken Issue: #6052 Closes #6053
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 84feb73e0..b962f1646 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;
}