Skip to content

Commit

Permalink
refactor(icache-ecc-test): add read-only field test
Browse files Browse the repository at this point in the history
  • Loading branch information
ngc7331 committed Dec 16, 2024
1 parent 3f1256a commit 1a7f59d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/icache-ecc-test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ int main() {
failed += test(ITARGET_SET(ITARGET_RSVD1) | INJECT | ENABLE, target, ISTATUS_ERROR, IERROR_TARGET_INVALID, "Inject to invalid target");
failed += test(ITARGET_SET(ITARGET_META) | INJECT, target, ISTATUS_ERROR, IERROR_NOT_ENABLED, "Inject when ecc not enabled");
failed += test(ITARGET_SET(ITARGET_META) | INJECT | ENABLE, 0, ISTATUS_ERROR, IERROR_NOT_FOUND, "Inject to invalid address");
failed += test(ISTATUS_SET(ISTATUS_WORKING) | IERROR_SET(IERROR_TARGET_INVALID) | ENABLE, target, ISTATUS_IDLE, 0, "IStatus & IError read-only");

return failed;
}

0 comments on commit 1a7f59d

Please sign in to comment.