Skip to content

Commit f4f2bb3

Browse files
finikorgnashif
authored andcommitted
edac: tests: Add testing error_trigger() for unset type
Add testing for edac_inject_error_trigger() for unset error type. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
1 parent 2405dd3 commit f4f2bb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/subsys/edac/ibecc/src/ibecc.c

+4
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ static void test_inject(uint64_t addr, uint64_t mask, uint8_t type)
163163

164164
interrupt = 0;
165165

166+
/* Test error_trigger() for unset error type */
167+
ret = edac_inject_error_trigger(dev);
168+
zassert_equal(ret, 0, "Error setting ctrl");
169+
166170
errors_cor = edac_errors_cor_get(dev);
167171
zassert_not_equal(errors_cor, -ENOSYS, "Not implemented error count");
168172

0 commit comments

Comments
 (0)