meson: use get_variable() update to meson 0.51
[mesa-waffle.git] / third_party / cmocka / tests / test_exception_handler.c
blob94c68420320a41194fde12c560e34682e81ccc09
1 #include <stdarg.h>
2 #include <stddef.h>
3 #include <setjmp.h>
4 #include <cmocka.h>
6 #include <stdlib.h>
8 struct test_segv {
9 int x;
10 int y;
13 static void test_segfault_recovery(void **state)
15 struct test_segv *s = NULL;
17 (void) state; /* unused */
19 s->x = 1;
22 int main(void) {
23 const struct CMUnitTest tests[] = {
24 cmocka_unit_test(test_segfault_recovery),
27 return cmocka_run_group_tests(tests, NULL, NULL);