We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fc77d9 commit 2405dd3Copy full SHA for 2405dd3
tests/subsys/edac/ibecc/src/ibecc.c
@@ -305,6 +305,18 @@ static void test_ibecc_error_inject_test_uc(void)
305
}
306
#endif
307
308
+/* Used only for code coverage */
309
+
310
+bool z_x86_do_kernel_nmi(const z_arch_esf_t *esf);
311
312
+static void test_trigger_nmi_handler(void)
313
+{
314
+ bool ret;
315
316
+ ret = z_x86_do_kernel_nmi(NULL);
317
+ zassert_false(ret, "Test that NMI handling fails");
318
+}
319
320
void test_edac_dummy_api(void);
321
322
void test_main(void)
@@ -314,6 +326,7 @@ void test_main(void)
326
327
328
ztest_test_suite(ibecc,
329
+ ztest_unit_test(test_trigger_nmi_handler),
330
ztest_unit_test(test_ibecc_initialized),
331
ztest_unit_test(test_ibecc_api),
332
ztest_unit_test(test_edac_dummy_api),
0 commit comments