Criterion/samples/tests/other-crashes.cc

15 lines
220 B
C++
Raw Permalink Normal View History

2015-09-07 02:00:03 +02:00
#include <criterion/criterion.h>
void crash(void) {
int *i = NULL;
*i = 42;
}
Test(misc, setup_crash, .init = crash) {
cr_assert(true);
}
Test(misc, teardown_crash, .fini = crash) {
cr_assert(true);
}