When using the conversion toolchain, the coverages are displayed abnormally in the integration test with the infinite loop removed.
When you use the conviersion toolchain to run host tests, if you set remove_infinity_loop = 1
in the toolchain.ini
file to remove the infinite loop and run the integration test, the coverage of the first test case is displayed normally, but the coverage starting from second test case is displayed abnormally.
This feature is provided by Controller Tester so that an infinite loop of the form while(1)
can be repeated as many as the number of test cases in an integration test.
When users want to eliminate infinite loops in integration tests, they should use the fault injection feature.
- Set
remove_infinity_loop = 0
in thetoolchain.ini
file.
- Break out of the loop by injecting a fault inside the loop.
- When a conditional statement that can break out of the infinite loop is inside the loop
- When a conditional statement that can break out of the infinite loop isn’t inside the loop.
Need more help with this?
Don’t hesitate to contact us here.