changeset 259:fe540b3f699b

Tweak tests
author charles
date Fri, 16 Jan 2009 02:26:56 +0000
parents 8289847c588e
children 76af4181188c
files direct/tests/nor_stress.c direct/yaffs_fileem2k.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/direct/tests/nor_stress.c
+++ b/direct/tests/nor_stress.c
@@ -71,7 +71,9 @@ void MakeFullNames(const char *prefix)
 static void FatalError(void)
 {
   printf("Integrity error\n");
-  while(1){}
+  while(1){
+   sleep(1);
+  }
 }
 
 static void UpdateCounter(const char *name, unsigned *val,  int initialise)
--- a/direct/yaffs_fileem2k.c
+++ b/direct/yaffs_fileem2k.c
@@ -143,7 +143,7 @@ static int  CheckInit(void)
 	
 
 	srand(random_seed);
-	remaining_ops = (rand() % 1000) * 2;
+	remaining_ops = (rand() % 1000) * 5;
   	memset(dummyBuffer,0xff,sizeof(dummyBuffer));