git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app: various tests update
[dpdk.git]
/
app
/
test
/
test_debug.c
diff --git
a/app/test/test_debug.c
b/app/test/test_debug.c
index
a10f6e8
..
72c5447
100644
(file)
--- 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);
}
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){
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;
}
return -1;
}
-
+#endif
return 0;
}
return 0;
}