Skip to content

Commit 37ba744

Browse files
committed
tests: Switch to NONE contexts in exhaustive and ctime tests
1 parent 8d7a9a8 commit 37ba744

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/tests_exhaustive.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ int main(int argc, char** argv) {
396396

397397
while (count--) {
398398
/* Build context */
399-
ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY);
399+
ctx = secp256k1_context_create(SECP256K1_CONTEXT_NONE);
400400
secp256k1_testrand256(rand32);
401401
CHECK(secp256k1_context_randomize(ctx, rand32));
402402

src/valgrind_ctime_test.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ int main(void) {
3939
fprintf(stderr, "Usage: libtool --mode=execute valgrind ./valgrind_ctime_test\n");
4040
return 1;
4141
}
42-
ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN
43-
| SECP256K1_CONTEXT_VERIFY
44-
| SECP256K1_CONTEXT_DECLASSIFY);
42+
ctx = secp256k1_context_create(SECP256K1_CONTEXT_DECLASSIFY);
4543
/** In theory, testing with a single secret input should be sufficient:
4644
* If control flow depended on secrets the tool would generate an error.
4745
*/

0 commit comments

Comments
 (0)