We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a46773a commit 9f1d8a2Copy full SHA for 9f1d8a2
src/util.h
@@ -25,7 +25,11 @@ static SECP256K1_INLINE void secp256k1_callback_call(const secp256k1_callback *
25
cb->fn(text, (void*)cb->data);
26
}
27
28
-#ifdef DETERMINISTIC
+#if defined(COVERAGE)
29
+/* Do nothing in COVERAGE mode. This will make the compiler optimize away the actual branch,
30
+ and we get useful branch coverage within our test files. */
31
+#define TEST_FAILURE(msg)
32
+#elif defined(DETERMINISTIC)
33
#define TEST_FAILURE(msg) do { \
34
fprintf(stderr, "%s\n", msg); \
35
abort(); \
0 commit comments