AM_TESTS has support for skipping tests, while the C-implementation
virtTestRun() does not support that feature.
Print "_" or "SKIP" in verbose mode for tests returning
EXIT_AM_SKIP=77.
Signed-off-by: Philipp Hahn <hahn(a)univention.de>
---
tests/testutils.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/testutils.c b/tests/testutils.c
index 08db732..c813637 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -160,6 +160,8 @@ virtTestRun(const char *title, int nloops, int (*body)(const void
*data), const
virtTestCountAverage(ts, nloops));
else if (ret == 0)
fprintf(stderr, "OK\n");
+ else if (ret == EXIT_AM_SKIP)
+ fprintf(stderr, "SKIP\n");
else
fprintf(stderr, "FAILED\n");
} else {
@@ -170,6 +172,8 @@ virtTestRun(const char *title, int nloops, int (*body)(const void
*data), const
}
if (ret == 0)
fprintf(stderr, ".");
+ else if (ret == EXIT_AM_SKIP)
+ fprintf(stderr, "_");
else
fprintf(stderr, "!");
}
--
1.7.1