]> git.proxmox.com Git - mirror_qemu.git/commit - include/sysemu/sysemu.h
qapi: Add exit-failure PanicAction
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 25 Jul 2022 22:37:45 +0000 (00:37 +0200)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 29 Jul 2022 08:48:01 +0000 (09:48 +0100)
commit0882caf4d607bcfb1efa99034f5f045f30eb43d7
treecddc59ef1f87b6d6c6346423dddd81a02966d119
parent9b1268f55ceb0d9390a051cad299b3021dfa9896
qapi: Add exit-failure PanicAction

Currently QEMU exits with code 0 on both panic an shutdown. For tests
it is useful to return 1 on panic, so that it counts as a test
failure.

Introduce a new exit-failure PanicAction that makes main() return
EXIT_FAILURE. Tests can use -action panic=exit-failure option to
activate this behavior.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20220725223746.227063-2-iii@linux.ibm.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
include/sysemu/sysemu.h
qapi/run-state.json
qemu-options.hx
softmmu/main.c
softmmu/runstate.c