More test tweaks
[yaffs2.git] / direct / tests / nor_stress.c
index 033700ddeea3177d56a3d2f9066f8d7bf343dc77..f84e1470ad8c6698e6395fb412626a533becd008 100644 (file)
@@ -27,6 +27,8 @@ do { \
 #endif
 
 
+void (*ext_fatal)(void) = NULL;
+
 static unsigned powerUps;
 static unsigned cycleStarts;
 static unsigned cycleEnds;
@@ -71,6 +73,9 @@ void MakeFullNames(const char *prefix)
 static void FatalError(int lineNo)
 {
   printf("Integrity error %d\n",lineNo);
+  if(ext_fatal)
+       ext_fatal();
+       
   while(1){
    sleep(1);
   }