From: Peter Krempa Date: Mon, 3 Apr 2023 11:33:52 +0000 (+0200) Subject: testutils: Print number of failed tests X-Git-Tag: v9.6.0-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cbe448977b73814e6651f6499d7ab2ae08fcd78;p=thirdparty%2Flibvirt.git testutils: Print number of failed tests We can easily report how many tests failed. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- diff --git a/tests/testutils.c b/tests/testutils.c index d77b9e8db2..e546422941 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -922,7 +922,7 @@ int virTestMain(int argc, if (ret == EXIT_FAILURE && !virBitmapIsAllClear(failedTests)) { g_autofree char *failed = virBitmapFormat(failedTests); - fprintf(stderr, "Some tests failed. Run them using:\n"); + fprintf(stderr, "%zu tests failed. Run them using:\n", virBitmapCountBits(failedTests)); fprintf(stderr, "VIR_TEST_DEBUG=1 VIR_TEST_RANGE=%s %s\n", failed, argv[0]); }