[libvirt] [PATCH 5/5] tests: uniformly report test failures

Michal Privoznik mprivozn at redhat.com
Mon Feb 25 10:38:44 UTC 2013


On 23.02.2013 00:09, Eric Blake wrote:
> testutils.c likes to print summaries after a test completes,
> including if it failed.  But if the test outright exit()s,
> this summary is skipped.  Enforce that we return instead of exit.
> 
> * cfg.mk (sc_prohibit_exit_tests): New syntax check.
> * tests/commandhelper.c (main): Fix offenders.
> * tests/qemumonitorjsontest.c (mymain): Likewise.
> * tests/seclabeltest.c (main): Likewise.
> * tests/securityselinuxlabeltest.c (mymain): Likewise.
> * tests/securityselinuxtest.c (mymain): Likewise.
> * tests/testutils.h (VIRT_TEST_MAIN_PRELOAD): Likewise.
> * tests/testutils.c (virtTestMain): Likewise.
> (virtTestCaptureProgramOutput): Use symbolic name.
> ---
>  cfg.mk                           | 7 +++++++
>  tests/commandhelper.c            | 7 +++----
>  tests/qemumonitorjsontest.c      | 8 +++-----
>  tests/seclabeltest.c             | 8 ++++----
>  tests/securityselinuxlabeltest.c | 6 +++---
>  tests/securityselinuxtest.c      | 6 +++---
>  tests/testutils.c                | 8 ++++----
>  tests/testutils.h                | 4 ++--
>  8 files changed, 29 insertions(+), 25 deletions(-)

ACK

Michal




More information about the libvir-list mailing list