Hello,
please use the following example of code.
/* Execute all tests */
result = m4_scst_execute_core_tests(0,43);
…
/* Check SCST result ! */
if (result==M4_SCST_TEST_WAS_INTERRUPTED)
{
/* Some, test was interrupted.
Please check m4_scst_last_executed_test_number variable and run
interrupted test + not executed tests again */
}
else if (result == 0x929940F1)
{
/* All tests passed */
}
else
{
/* Error, please check m4_scst_last_executed_test_number variable
to have number of failed test */
}
Note, that value 0x929940F1 represents XOR operation over the 32-bit signatures of all atomic tests requested for execution. These signatures are documented in the M4 SCST User Manual document.