Criterion/samples/skip.c
ailu 7143118b5c api: added cr_skip_test()
Added cr_skip_test to skip a test during runtime. Also merged the old
disable system with the new one. All skipped tests are printed by
normal_log_post_suite(), so there is no need for a logger function for
runtime skipepd tests.
Fixes #131.
2016-09-03 23:06:35 +02:00

10 lines
221 B
C

#include <criterion/criterion.h>
Test(misc, skipping) {
cr_skip_test();
cr_assert_fail("We want to skip before failing");
}
Test(misc, message) {
cr_skip_test("Skips may take %s", "printf-like messages");
}