From f36c41126df61fdc24eebcb2b865a6509d9f555c Mon Sep 17 00:00:00 2001 From: compudj Date: Sun, 17 Aug 2008 08:05:26 +0000 Subject: [PATCH] update test git-svn-id: http://ltt.polymtl.ca/svn@3027 04897980-b3bd-0310-b5e0-8ef037075253 --- trunk/tests/kernel/test-fair-rwlock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/tests/kernel/test-fair-rwlock.c b/trunk/tests/kernel/test-fair-rwlock.c index 8e40a8f6..14ca57c2 100644 --- a/trunk/tests/kernel/test-fair-rwlock.c +++ b/trunk/tests/kernel/test-fair-rwlock.c @@ -19,7 +19,7 @@ #endif /* Test duration, in seconds */ -#define TEST_DURATION 600 +#define TEST_DURATION 60 #define THREAD_ROFFSET 1UL #define THREAD_RMASK ((NR_CPUS - 1) * THREAD_ROFFSET) @@ -45,7 +45,7 @@ #define NR_INTERRUPT_READERS 2 /* Writer iteration delay, in ms. 0 for busy loop. */ -#define WRITER_DELAY 1 +#define WRITER_DELAY 0 static int var[NR_VARS]; static struct task_struct *reader_threads[NR_READERS]; @@ -222,7 +222,7 @@ static void perform_test(const char *name, void (*callback)(void)) static int my_open(struct inode *inode, struct file *file) { perform_test("fair-rwlock-create", fair_rwlock_create); - ssleep(600); + ssleep(TEST_DURATION); perform_test("fair-rwlock-stop", fair_rwlock_stop); return -EPERM; -- 2.34.1