app: various tests update
[dpdk.git] / app / test / test_debug.c
index a10f6e8..72c5447 100644 (file)
@@ -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;
 }