Whenever QEMU coredumps, the test would previously succeed.
With this patchset applied, one sees:
assertion failed: !WCOREDUMP(wstatus)
Changes from v3:
- add osdep stubs for non-linux platforms, suggested by Thomas
Changes from v2:
- bugfix
- assert returned pid
- rework complex asserts for clarity
Changes from v1:
- drop SIGTERM as suggested by Eric
Michael S. Tsirkin (3):
osdep: add wait.h compat macros
libqtest: fail if child coredumps
libqtest: add more exit status checks
include/qemu/osdep.h | 10 ++++++++++
tests/libqtest.c | 19 ++++++++++++++++++-
2 files changed, 28 insertions(+), 1 deletion(-)
--
MST