X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=app%2Ftest%2Ftest_malloc.c;h=ee34ca3bed059c4e3fb37abc6ef6682cccc0fb77;hp=081715192e82d9369438f45341f95d85064b93a9;hb=942405f9e2f2c22aa817be374ccfe939a72df2ce;hpb=727909c5923147d0c7c0091a0f791432fa954431 diff --git a/app/test/test_malloc.c b/app/test/test_malloc.c index 081715192e..ee34ca3bed 100644 --- a/app/test/test_malloc.c +++ b/app/test/test_malloc.c @@ -924,7 +924,7 @@ test_alloc_socket(void) return 0; } -int +static int test_malloc(void) { unsigned lcore_id; @@ -1045,3 +1045,9 @@ test_malloc(void) return 0; } + +static struct test_command malloc_cmd = { + .command = "malloc_autotest", + .callback = test_malloc, +}; +REGISTER_TEST_COMMAND(malloc_cmd);