From: Charles Manning Date: Wed, 4 Aug 2010 02:51:06 +0000 (+1200) Subject: yaffs Get fuzz tester to run further X-Git-Tag: pre-name-change~29 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=9d8bb3ae8a8362d1899d6565ca6ca1217fb172f0;ds=sidebyside 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 --- 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();