Reduce size for nor simulation testing to try force errors
[yaffs2.git] / direct / nor_stress.c
index 0eaaf1bd0f23419dcd9cedd77b92396e7c1a0c06..4ac10b1c6186f929b0e1ea9f00aca7c353d679f3 100644 (file)
@@ -48,8 +48,8 @@ static void FatalError(void)
 
 static void UpdateCounter(const char *name, unsigned *val,  int initialise)
 {
-  int inh;
-  int outh;
+  int inh=-1;
+  int outh=-1;
   unsigned x[2];
   int nread = 0;
   int nwritten = 0;
@@ -139,6 +139,9 @@ static void dump_directory_tree_worker(const char *dname,int recursive)
 
                        if((s.st_mode & S_IFMT) == S_IFDIR && recursive)
                                dump_directory_tree_worker(str,1);
+                               
+                        if(s.st_ino > 10000)
+                          FatalError();
                                                        
                }