remove unneeded array tests
These are tested in libgnunetutil now.
This commit is contained in:
parent
20714489cf
commit
e52b751b87
@ -32,48 +32,6 @@ static uint16_t bidders;
|
||||
static uint16_t prizes;
|
||||
static struct BRANDT_Auction *ad;
|
||||
|
||||
static int
|
||||
test_smc_2d_array ()
|
||||
{
|
||||
gcry_mpi_point_t **array;
|
||||
uint16_t size1 = 3;
|
||||
uint16_t size2 = 7;
|
||||
uint16_t i, j;
|
||||
|
||||
array = smc_init2 (size1, size2);
|
||||
CHECK (array, "memory allocation failed");
|
||||
|
||||
for (i = 0; i < size1; i++)
|
||||
for (j = 0; j < size2; j++)
|
||||
CHECK (array[i][j], "point has not been initialized");
|
||||
|
||||
smc_free2 (array, size1, size2);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
test_smc_3d_array ()
|
||||
{
|
||||
gcry_mpi_point_t ***array;
|
||||
uint16_t size1 = 3;
|
||||
uint16_t size2 = 7;
|
||||
uint16_t size3 = 11;
|
||||
uint16_t i, j, k;
|
||||
|
||||
array = smc_init3 (size1, size2, size3);
|
||||
CHECK (array, "memory allocation failed");
|
||||
|
||||
for (i = 0; i < size1; i++)
|
||||
for (j = 0; j < size2; j++)
|
||||
for (k = 0; k < size3; k++)
|
||||
CHECK (array[i][j][k], "point has not been initialized");
|
||||
|
||||
smc_free3 (array, size1, size2, size3);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
test_serialization ()
|
||||
{
|
||||
@ -336,8 +294,6 @@ main (int argc, char *argv[])
|
||||
BRANDT_init (edc);
|
||||
|
||||
/* tests that need to run only once */
|
||||
RUN (test_smc_2d_array);
|
||||
RUN (test_smc_3d_array);
|
||||
RUN (test_serialization);
|
||||
|
||||
for (tests_run = 0; tests_run < repeat; tests_run++)
|
||||
|
Loading…
Reference in New Issue
Block a user