From e52b751b87ecf4feaa1c3af323fc753fba5f87b3 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Thu, 29 Sep 2016 10:21:26 +0200 Subject: [PATCH] remove unneeded array tests These are tested in libgnunetutil now. --- test_crypto.c | 44 -------------------------------------------- 1 file changed, 44 deletions(-) diff --git a/test_crypto.c b/test_crypto.c index c2f5231..6a49927 100644 --- a/test_crypto.c +++ b/test_crypto.c @@ -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++)