-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(unittests): sysregs status might be inconsistent between runs
Current implementation of test_helpers_rmm_start() in the test_helpers library performs an initialization of the RMM runtime for the host build on the first call. Subsequent calls are just ignored after the first initialization. This can cause a number of problems due to the sysregs left in an undetermined status. For instance, a test using the RMM runtime will leave the sysreg in an inconsistent state and cause problems for the next test one. Hence it is essential for the next test to reset to a previous known state as part of initialization. Any test using the RMM runtime will need to restore the sysregs status and callbacks before running any new test. This patch adds support to save the sysreg state after RMM initialization in test_helpers_rmm_start() and restores this state for any subsequent call to test_helpers_rmm_start(). Signed-off-by: Javier Almansa Sobrino <[email protected]> Change-Id: Ifb705380f079308576e7f59b475be6984447f045
- Loading branch information
1 parent
f450817
commit 48d68a7
Showing
3 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters