Criterion/samples/fixtures.cc

17 lines
245 B
C++
Raw Permalink Normal View History

2015-09-07 02:00:03 +02:00
#include <criterion/criterion.h>
#include <stdio.h>
void setup(void)
{
2015-09-07 02:00:03 +02:00
puts("Runs before the test");
}
void teardown(void)
{
2015-09-07 02:00:03 +02:00
puts("Runs after the test");
}
Test(simple, fixtures, .init = setup, .fini = teardown) {
cr_assert(1);
}