What to do upon detection of Error

Note: This was originally posted on 29th July 2011 at http://forums.arm.com

Hi,
I have implemented a couple of tests for Cortex-M3. These tests include calculation of CRC checksum over selected flash area, verification of Clock using Clock Supervisor and verification of occurance of Interrupts. the tests are working perfectly but I am not sure what to do, in case CRC checksum is wrong, or any of the other mentioned tests do not meet the desired results.
One option is to implement endless loop, waiting for watchdog to hit, is it meaningful? any other ideas would be highly appreciated.
All these tests are part of self test library that has to be integrated with the end user application. Is it make sense to leave it to the user to define whatever he thinks suitable in case of failure of component?
Looking for some quick response!
Regards,
More questions in this forum