From 99ef2719fb3d703fe38c4113cd7f5adec516dd3a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 28 Oct 2016 20:29:21 +0200 Subject: test: remove test suite The test suite is now a developed in a separate git repository. See here: http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng-test.git The test suite should be just like every other software compiled with the cross-toolchain. In the past strange problems where found when the test suite got build in the toolchain creation step. --- test/malloc/malloc.c | 81 ---------------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 test/malloc/malloc.c (limited to 'test/malloc/malloc.c') diff --git a/test/malloc/malloc.c b/test/malloc/malloc.c deleted file mode 100644 index ca7c5f927..000000000 --- a/test/malloc/malloc.c +++ /dev/null @@ -1,81 +0,0 @@ - -#include -#include -#include -#include - -#define N_PTRS 1000 -#define N_ALLOCS 10000 -#define MAX_SIZE 0x10000 - -#define random_size() (random()%MAX_SIZE) -#define random_ptr() (random()%N_PTRS) - -int test1(void); -int test2(void); - -int main(int argc, char *argv[]) -{ - return test1() + test2(); -} - -int test1(void) -{ - void **ptrs; - int i,j; - int size; - int ret = 0; - - srandom(0x19730929); - - ptrs = malloc(N_PTRS*sizeof(void *)); - - for(i=0; i