faster tests

This commit is contained in:
Markus Teich 2016-07-13 14:20:14 +02:00
parent 35c18237ab
commit 551ca1d657

View File

@ -181,7 +181,7 @@ test_smc_zkp_0og ()
} }
int static int
test_setup_auction_data () test_setup_auction_data ()
{ {
uint16_t i; uint16_t i;
@ -289,7 +289,7 @@ test_round2 ()
} }
int static int
test_round3 () test_round3 ()
{ {
uint16_t i, s; uint16_t i, s;
@ -319,7 +319,7 @@ test_round3 ()
} }
int static int
test_outcome () test_outcome ()
{ {
int32_t ret = -1; int32_t ret = -1;
@ -338,7 +338,7 @@ test_outcome ()
} }
void static void
cleanup_auction_data () cleanup_auction_data ()
{ {
for (uint16_t i = 0; i < bidders; i++) for (uint16_t i = 0; i < bidders; i++)
@ -370,7 +370,7 @@ main (int argc, char *argv[])
bidders = 2; bidders = 2;
prizes = 2 * bidders; prizes = 2 * bidders;
edc = GNUNET_CRYPTO_ecc_dlog_prepare (1024 * 1024, 1024); edc = GNUNET_CRYPTO_ecc_dlog_prepare (1024, 16);
BRANDT_init (edc); BRANDT_init (edc);
/* tests that need to run only once */ /* tests that need to run only once */