diff --git a/test/test.c b/test/test.c index e5fc756..eaf7de0 100644 --- a/test/test.c +++ b/test/test.c @@ -159,6 +159,8 @@ error: void test_loop(void) { + int i; + if ((ctx_test = secp256k1_context_create(SECP256K1_CONTEXT_NONE)) == NULL) { printf("cannot create secp256k1 context\n"); @@ -172,7 +174,7 @@ void test_loop(void) if (test_pubkey()) printf("pubkey: error\n"); - while(1) { + for (i = 0; i < 1000; i++) { if (test_sign()) printf("sign: error\n"); if (test_shared_secret())