X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Ftest%2Ftest_debug.c;h=72c5447e6263fe2e6191b49eabb97fbfd871efa1;hb=a40a1f8231b43844312c9b2ff7b3f1726c9a2c25;hp=a10f6e87bb17e63be2658ade6d0e12b696a09360;hpb=a5d045b2b404f1095e78f6f77ce3a9aa7fa1f25c;p=dpdk.git diff --git a/app/test/test_debug.c b/app/test/test_debug.c index a10f6e87bb..72c5447e62 100644 --- a/app/test/test_debug.c +++ b/app/test/test_debug.c @@ -113,11 +113,13 @@ test_exit_val(int exit_val) } wait(&status); printf("Child process status: %d\n", status); +#ifndef RTE_EAL_ALWAYS_PANIC_ON_ERROR if(!WIFEXITED(status) || WEXITSTATUS(status) != (uint8_t)exit_val){ - printf("Child process terminated with incorrect return code!\n"); + printf("Child process terminated with incorrect status (expected = %d)!\n", + exit_val); return -1; } - +#endif return 0; }