Re: [PATCH v2 1/2] qapi: Add exit-failure PanicAction

2022-07-25 Thread Eric Blake
On Sat, Jul 23, 2022 at 01:36:13AM +0200, Ilya Leoshkevich wrote: > 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

Re: [PATCH v2 1/2] qapi: Add exit-failure PanicAction

2022-07-25 Thread David Hildenbrand
On 23.07.22 01:36, Ilya Leoshkevich wrote: > 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

Re: [PATCH v2 1/2] qapi: Add exit-failure PanicAction

2022-07-24 Thread Richard Henderson
On 7/23/22 05:06, Ilya Leoshkevich wrote: 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

[PATCH v2 1/2] qapi: Add exit-failure PanicAction

2022-07-22 Thread Ilya Leoshkevich
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.