From 9d8bb3ae8a8362d1899d6565ca6ca1217fb172f0 Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Wed, 4 Aug 2010 14:51:06 +1200 Subject: [PATCH] yaffs Get fuzz tester to run further 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 --- direct/tests/nor_stress.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/direct/tests/nor_stress.c b/direct/tests/nor_stress.c index bb614d8..3802837 100644 --- a/direct/tests/nor_stress.c +++ b/direct/tests/nor_stress.c @@ -21,6 +21,7 @@ #include +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(); -- 2.30.2