Skip to content

Commit

Permalink
build: Make tests work with external default callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed May 11, 2023
1 parent 9eb6934 commit 1907f0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@

#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 "../include/secp256k1.h"
#include "../include/secp256k1_preallocated.h"
#include "testrand_impl.h"
Expand Down
5 changes: 5 additions & 0 deletions src/tests_exhaustive.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
#define EXHAUSTIVE_TEST_ORDER 13
#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 "../include/secp256k1.h"
#include "assumptions.h"
#include "group.h"
Expand Down

0 comments on commit 1907f0f

Please sign in to comment.