build: Make tests work with external default callbacks

This commit is contained in:
Tim Ruffing 2023-05-11 19:08:35 +02:00
parent 9eb6934f69
commit 1907f0f166
2 changed files with 10 additions and 0 deletions

View File

@ -10,7 +10,12 @@
#include <time.h> #include <time.h>
#ifdef USE_EXTERNAL_DEFAULT_CALLBACKS
#pragma message("Ignoring USE_EXTERNAL_CALLBACKS in tests.")
#undef USE_EXTERNAL_DEFAULT_CALLBACKS
#endif
#include "secp256k1.c" #include "secp256k1.c"
#include "../include/secp256k1.h" #include "../include/secp256k1.h"
#include "../include/secp256k1_preallocated.h" #include "../include/secp256k1_preallocated.h"
#include "testrand_impl.h" #include "testrand_impl.h"

View File

@ -13,7 +13,12 @@
#define EXHAUSTIVE_TEST_ORDER 13 #define EXHAUSTIVE_TEST_ORDER 13
#endif #endif
#ifdef USE_EXTERNAL_DEFAULT_CALLBACKS
#pragma message("Ignoring USE_EXTERNAL_CALLBACKS in exhaustive_tests.")
#undef USE_EXTERNAL_DEFAULT_CALLBACKS
#endif
#include "secp256k1.c" #include "secp256k1.c"
#include "../include/secp256k1.h" #include "../include/secp256k1.h"
#include "assumptions.h" #include "assumptions.h"
#include "group.h" #include "group.h"