[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]