[PATCH 0/3] tests: Return EXIT_* from main instead of 0/-1

Michal Privoznik mprivozn at redhat.com
Mon May 17 06:49:07 UTC 2021


See 3/3 for rationale.

Michal Prívozník (3):
  testutils: Drop libtool binary name handling
  tests: Return EXIT_FAILURE/EXIT_SUCCESS instead of -1/0
  testutils: Document and enforce @func callback retvals for
    virTestMain()

 tests/fchosttest.c          |  2 +-
 tests/qemusecuritytest.c    |  2 +-
 tests/scsihosttest.c        |  2 +-
 tests/seclabeltest.c        |  2 +-
 tests/storagepoolcapstest.c |  2 +-
 tests/testutils.c           | 20 +++++++++++++++-----
 tests/testutils.h           |  4 ++++
 tests/virbitmaptest.c       |  2 +-
 tests/vircaps2xmltest.c     |  2 +-
 tests/vircapstest.c         |  2 +-
 tests/virconftest.c         |  2 +-
 tests/virendiantest.c       |  2 +-
 tests/virlogtest.c          |  2 +-
 tests/virresctrltest.c      |  2 +-
 tests/virscsitest.c         |  2 +-
 15 files changed, 32 insertions(+), 18 deletions(-)

-- 
2.26.3




More information about the libvir-list mailing list