X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=app%2Ftest%2Ftest_debug.c;h=7c3ee926c67b327455fdfaa0a948c085eeca2300;hp=4659e469ebbb3d39837888273c4891b7501b197b;hb=503f9e8b42562b923e73e908be6ba69964f1f1e7;hpb=f9462cf0b948fff3b3c5b4c05e4386bfe6715a2b diff --git a/app/test/test_debug.c b/app/test/test_debug.c index 4659e469eb..7c3ee926c6 100644 --- a/app/test/test_debug.c +++ b/app/test/test_debug.c @@ -45,31 +45,9 @@ /* * Debug test * ========== - * - * - Call rte_dump_stack() and rte_dump_registers(). The result is not checked - * currently, as the functions are not implemented on baremetal. - * - Check that rte_panic() terminates the program using a non-zero error code. - * (Only implemented on linux, since it requires the fork() system call) */ -#ifdef RTE_EXEC_ENV_BAREMETAL - -/* baremetal - don't test rte_panic or rte_exit */ -static int -test_panic(void) -{ - return 0; -} - -static int -test_exit(void) -{ - return 0; -} - -#else - -/* linuxapp - use fork() to test rte_panic() */ +/* use fork() to test rte_panic() */ static int test_panic(void) { @@ -94,7 +72,7 @@ test_panic(void) return 0; } -/* linuxapp - use fork() to test rte_exit() */ +/* use fork() to test rte_exit() */ static int test_exit_val(int exit_val) { @@ -134,8 +112,6 @@ test_exit(void) return 0; } -#endif - static void dummy_app_usage(const char *progname) {