From a98c11764d4a82f98fbf080b9f04026cc0d4a37f Mon Sep 17 00:00:00 2001 From: charles Date: Fri, 16 Jan 2009 02:26:56 +0000 Subject: [PATCH] Tweak tests --- direct/tests/nor_stress.c | 4 +++- direct/yaffs_fileem2k.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/direct/tests/nor_stress.c b/direct/tests/nor_stress.c index 51a6bdd..5676159 100644 --- 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) diff --git a/direct/yaffs_fileem2k.c b/direct/yaffs_fileem2k.c index a4baaa3..1050276 100644 --- a/direct/yaffs_fileem2k.c +++ b/direct/yaffs_fileem2k.c @@ -16,7 +16,7 @@ * This is only intended as test code to test persistence etc. */ -const char *yaffs_flashif2_c_version = "$Id: yaffs_fileem2k.c,v 1.17 2009-01-16 00:46:59 charles Exp $"; +const char *yaffs_flashif2_c_version = "$Id: yaffs_fileem2k.c,v 1.18 2009-01-16 02:26:56 charles Exp $"; #include "yportenv.h" @@ -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)); -- 2.30.2