Home
last modified time | relevance | path

Searched refs:ut_expected_panic (Results 1 – 2 of 2) sorted by relevance

/xnu-12377.1.9/tests/unit/mocks/
H A Dmock_attached.c65 struct ut_expected_panic_s ut_expected_panic; variable
70 if (!ut_expected_panic.expect_panic) { in ut_check_expected_panic()
73 ut_expected_panic.expect_panic = false; in ut_check_expected_panic()
74 if (ut_expected_panic.str_contains != NULL) { in ut_check_expected_panic()
75 if (strstr(panic_str, ut_expected_panic.str_contains) == NULL) { in ut_check_expected_panic()
76 …PT_LOG_FMTSTR("Panic with unexpected panic-string, expected: `%s`", ut_expected_panic.str_contains… in ut_check_expected_panic()
81 longjmp(ut_expected_panic.jb, 1); in ut_check_expected_panic()
H A Dunit_test_utils.h38 extern struct ut_expected_panic_s ut_expected_panic;
43 if (setjmp(ut_expected_panic.jb) == 0) { \
44 ut_expected_panic.expect_panic = true; \
45 ut_expected_panic.str_contains = s_contains; \