unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob a3e6218944a3d0e3a4ad706c1bfa4e66393e4a03 420 bytes (raw)
name: gnu/packages/patches/hash-extender-test-suite.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
Make the test suite exit with a non-zero exit code if some tests failed.
--- a/test.c
+++ b/test.c
@@ -79,5 +79,9 @@ void test_report(void)
     printf("TESTS PASSED: %d / %d [%2.4f%%]\n", tests_passed, tests_run, 100 * (float)tests_passed / tests_run);
     printf("--------------------------------------------------------------------------------\n");
   }
+
+  if (tests_passed != tests_run) {
+      exit(1);
+  }
 }

debug log:

solving a3e6218944 ...
found a3e6218944 in https://yhetil.org/guix-patches/20200320193250.31290-1-kuba@kadziolka.net/

applying [1/1] https://yhetil.org/guix-patches/20200320193250.31290-1-kuba@kadziolka.net/
diff --git a/gnu/packages/patches/hash-extender-test-suite.patch b/gnu/packages/patches/hash-extender-test-suite.patch
new file mode 100644
index 0000000000..a3e6218944

Checking patch gnu/packages/patches/hash-extender-test-suite.patch...
Applied patch gnu/packages/patches/hash-extender-test-suite.patch cleanly.

index at:
100644 a3e6218944a3d0e3a4ad706c1bfa4e66393e4a03	gnu/packages/patches/hash-extender-test-suite.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).