Criterion/samples/more-suites.c

22 lines
306 B
C
Raw Permalink Normal View History

#include <criterion/criterion.h>
void setup_suite(void) {
}
2015-04-12 16:38:14 +02:00
void teardown_suite(void) {
}
TestSuite(suite1, .init = setup_suite, .fini = teardown_suite);
Test(suite1, test) {
cr_assert(1);
}
Test(suite2, test) {
cr_assert(1);
}
TestSuite(disabled, .disabled = true);
Test(disabled, test) {}