提交 c58d778d 编写于 作者: P Philipp Hahn 提交者: Eric Blake

tests: Add support for skipping tests

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: NPhilipp Hahn <hahn@univention.de>
上级 da8127e6
......@@ -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, "!");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册