From e83801f5db2cb63e6343eff0ecfa40b7cd4a9090 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 30 May 2023 11:17:20 +0100 Subject: [PATCH] test: Warn if both `VERIFY` and `COVERAGE` are defined --- src/tests.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests.c b/src/tests.c index 43ce73ec9691d..4088c9ff2a657 100644 --- a/src/tests.c +++ b/src/tests.c @@ -14,6 +14,9 @@ #pragma message("Ignoring USE_EXTERNAL_CALLBACKS in tests.") #undef USE_EXTERNAL_DEFAULT_CALLBACKS #endif +#if defined(VERIFY) && defined(COVERAGE) + #pragma message("Defining VERIFY for tests being built for coverage analysis support is meaningless.") +#endif #include "secp256k1.c" #include "../include/secp256k1.h"