Skip to content

Commit 0559a3d

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 330a333 commit 0559a3d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/tests.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2467,9 +2467,13 @@ void run_field_misc(void) {
24672467
secp256k1_fe q;
24682468
secp256k1_fe fe5 = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, 5);
24692469
int i, j;
2470-
for (i = 0; i < 5*count; i++) {
2470+
for (i = 0; i < 1000 * count; i++) {
24712471
secp256k1_fe_storage xs, ys, zs;
2472-
random_fe(&x);
2472+
if (i & 1) {
2473+
random_fe(&x);
2474+
} else {
2475+
random_fe_test(&x);
2476+
}
24732477
random_fe_non_zero(&y);
24742478
/* Test the fe equality and comparison operations. */
24752479
CHECK(secp256k1_fe_cmp_var(&x, &x) == 0);

0 commit comments

Comments
 (0)