X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_stack.c;h=c8dac1f55cdce8ae31e6b6dce0cabebcbfd69904;hb=eb570862a206adb53932525ed19211cee0f940de;hp=e972a61a7fb19b39672c06f05c8b160ccd174e9a;hpb=0420378bbfc4ff14261f5fa84f16ffe142048061;p=dpdk.git diff --git a/app/test/test_stack.c b/app/test/test_stack.c index e972a61a7f..c8dac1f55c 100644 --- a/app/test/test_stack.c +++ b/app/test/test_stack.c @@ -336,12 +336,14 @@ test_stack_multithreaded(uint32_t flags) struct rte_stack *s; rte_atomic64_t size; + if (rte_lcore_count() < 2) { + printf("Not enough cores for test_stack_multithreaded, expecting at least 2\n"); + return TEST_SKIPPED; + } + printf("[%s():%u] Running with %u lcores\n", __func__, __LINE__, rte_lcore_count()); - if (rte_lcore_count() < 2) - return 0; - args = rte_malloc(NULL, sizeof(struct test_args) * RTE_MAX_LCORE, 0); if (args == NULL) { printf("[%s():%u] failed to malloc %zu bytes\n",