[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 246/411: runtests: return error if no tests ran
From: |
gnunet |
Subject: |
[gnurl] 246/411: runtests: return error if no tests ran |
Date: |
Wed, 13 Jan 2021 01:21:01 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 88bf689f94bc5717f1826192fbe2bea252804bcb
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Thu Oct 8 00:13:07 2020 +0200
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
---
tests/runtests.pl | 6 +++---
1 file 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;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnurl] 206/411: tests/README: convert to markdown, (continued)
- [gnurl] 206/411: tests/README: convert to markdown, gnunet, 2021/01/12
- [gnurl] 249/411: checksrc: warn on empty line before open brace, gnunet, 2021/01/12
- [gnurl] 208/411: TODO: Add OpenBSD libtool notice, gnunet, 2021/01/12
- [gnurl] 209/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 213/411: tool_setopt: escape binary data to hex, not octal, gnunet, 2021/01/12
- [gnurl] 260/411: curl_url_set.3: fix typo in the RETURN VALUE section, gnunet, 2021/01/12
- [gnurl] 234/411: tests/server/util.c: fix support for Windows Unicode builds, gnunet, 2021/01/12
- [gnurl] 235/411: CI/tests: fix invocation of tests for CMake builds, gnunet, 2021/01/12
- [gnurl] 227/411: checksrc: detect // comments on column 0, gnunet, 2021/01/12
- [gnurl] 199/411: sectransp: make it build with --disable-proxy, gnunet, 2021/01/12
- [gnurl] 246/411: runtests: return error if no tests ran,
gnunet <=
- [gnurl] 228/411: runtests.pl: use $LIBDIR variable instead of hardcoded path, gnunet, 2021/01/12
- [gnurl] 211/411: strerror: fix null deref on winapi out-of-memory, gnunet, 2021/01/12
- [gnurl] 237/411: mailmap: fixups of some contributors, gnunet, 2021/01/12
- [gnurl] 204/411: examples/README: convert to markdown, gnunet, 2021/01/12
- [gnurl] 252/411: http3: fix two build errors, silence warnings, gnunet, 2021/01/12
- [gnurl] 191/411: schannel: return CURLE_PEER_FAILED_VERIFICATION for untrusted root, gnunet, 2021/01/12
- [gnurl] 264/411: CMake: call the feature unixsockets without dash, gnunet, 2021/01/12
- [gnurl] 207/411: tests/unit/README: convert to markdown, gnunet, 2021/01/12
- [gnurl] 261/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 215/411: test1465: verify --libcurl with binary POST data, gnunet, 2021/01/12