]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Return EXIT_FAILURE/EXIT_SUCCESS instead of -1/0
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 16 May 2021 16:14:53 +0000 (18:14 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 May 2021 07:25:32 +0000 (09:25 +0200)
commit5d99b157bcae14e7429f4f21f0c841e5b839effb
tree9daeaf195aa99e999906e58e34d9a32a4c26b0c4
parent351742e859de2b17b5412ead703f0d200849a96b
tests: Return EXIT_FAILURE/EXIT_SUCCESS instead of -1/0

When using VIR_TEST_MAIN() or VIR_TEST_MAIN_PRELOAD() macros, the
retval of mymain() will become retval of main(). Hence, mymain()
should use EXIT_FAILURE and EXIT_SUCCESS return values for
greater portability. Another reason is that otherwise our summary
printing of failed tests doesn't work (see following commit for
more info).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
13 files changed:
tests/fchosttest.c
tests/qemusecuritytest.c
tests/scsihosttest.c
tests/seclabeltest.c
tests/storagepoolcapstest.c
tests/virbitmaptest.c
tests/vircaps2xmltest.c
tests/vircapstest.c
tests/virconftest.c
tests/virendiantest.c
tests/virlogtest.c
tests/virresctrltest.c
tests/virscsitest.c