Skip to content

Commit 2cbb4b1

Browse files
sipapeterdettman
authored andcommitted
Run more iterations of run_field_misc
At count=64, this makes the test take around 1% of the total time.
1 parent 9cc5c25 commit 2cbb4b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/tests.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -2478,9 +2478,13 @@ void run_field_misc(void) {
24782478
secp256k1_fe q;
24792479
secp256k1_fe fe5 = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, 5);
24802480
int i, j;
2481-
for (i = 0; i < 5*count; i++) {
2481+
for (i = 0; i < 1000 * count; i++) {
24822482
secp256k1_fe_storage xs, ys, zs;
2483-
random_fe(&x);
2483+
if (i & 1) {
2484+
random_fe(&x);
2485+
} else {
2486+
random_fe_test(&x);
2487+
}
24842488
random_fe_non_zero(&y);
24852489
/* Test the fe equality and comparison operations. */
24862490
CHECK(secp256k1_fe_cmp_var(&x, &x) == 0);

0 commit comments

Comments
 (0)