yaffs Get fuzz tester to run further
authorCharles Manning <cdhmanning@gmail.com>
Wed, 4 Aug 2010 02:51:06 +0000 (14:51 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Wed, 4 Aug 2010 02:51:06 +0000 (14:51 +1200)
During fuzz testing we allow tests to run even if integrity errors happen. This
allows the fuzz test to check for more complex cases.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/tests/nor_stress.c

index bb614d8..3802837 100644 (file)
@@ -21,6 +21,7 @@
 #include <stdio.h>
 
 
+extern int fuzz_test;
 
 #if 1
 #define FSX_INIT(mount_pt) do{ if(interleave_fsx) yaffs_fsx_init(mount_pt); } while(0)
@@ -89,6 +90,10 @@ void MakeFullNames(const char *prefix)
 static void FatalError(int lineNo)
 {
   printf("Integrity error %d\n",lineNo);
+
+  if(fuzz_test)
+       return;
+
   if(ext_fatal)
        ext_fatal();