Skip to content

Commit 1a7f59d

Browse files
committed
refactor(icache-ecc-test): add read-only field test
1 parent 3f1256a commit 1a7f59d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/icache-ecc-test/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ int main() {
100100
failed += test(ITARGET_SET(ITARGET_RSVD1) | INJECT | ENABLE, target, ISTATUS_ERROR, IERROR_TARGET_INVALID, "Inject to invalid target");
101101
failed += test(ITARGET_SET(ITARGET_META) | INJECT, target, ISTATUS_ERROR, IERROR_NOT_ENABLED, "Inject when ecc not enabled");
102102
failed += test(ITARGET_SET(ITARGET_META) | INJECT | ENABLE, 0, ISTATUS_ERROR, IERROR_NOT_FOUND, "Inject to invalid address");
103+
failed += test(ISTATUS_SET(ISTATUS_WORKING) | IERROR_SET(IERROR_TARGET_INVALID) | ENABLE, target, ISTATUS_IDLE, 0, "IStatus & IError read-only");
103104

104105
return failed;
105106
}

0 commit comments

Comments
 (0)