2015-09-07 02:00:03 +02:00
|
|
|
#include <criterion/criterion.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2016-09-05 21:32:57 +02:00
|
|
|
void setup(void)
|
|
|
|
{
|
2015-09-07 02:00:03 +02:00
|
|
|
puts("Runs before the test");
|
|
|
|
}
|
|
|
|
|
2016-09-05 21:32:57 +02:00
|
|
|
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);
|
|
|
|
}
|