tests/qtest: Use EXIT_FAILURE instead of magic number
authorBin Meng <bin.meng@windriver.com>
Fri, 28 Oct 2022 04:57:30 +0000 (12:57 +0800)
committerThomas Huth <thuth@redhat.com>
Fri, 28 Oct 2022 12:31:49 +0000 (14:31 +0200)
commit1b0f1b14fe26752d628dd71920f4bb63b79765a4
tree08f1da019fe2e1c71532fcce65e6b99adcf34320
parente4439e52806b797f38adf7a96b5ed74295f806b0
tests/qtest: Use EXIT_FAILURE instead of magic number

When migration fails, QEMU exits with a status code EXIT_FAILURE.
Change qtests to use the well-defined macro instead of magic number.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Message-Id: <20221028045736.679903-6-bin.meng@windriver.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/dbus-vmstate-test.c
tests/qtest/migration-test.c