From 8ca5213c1e8ce0823465f23000bfb609e841aae1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 30 May 2006 20:25:40 +0000 Subject: [PATCH] Reduce number of simultaneously waking threads to 3, in lieu of increasing instructions-per-second (ips) for Bochs. --- src/tests/threads/alarm-simultaneous.c | 2 +- src/tests/threads/alarm-simultaneous.ck | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/tests/threads/alarm-simultaneous.c b/src/tests/threads/alarm-simultaneous.c index 7db5418..4ba3651 100644 --- a/src/tests/threads/alarm-simultaneous.c +++ b/src/tests/threads/alarm-simultaneous.c @@ -15,7 +15,7 @@ static void test_sleep (int thread_cnt, int iterations); void test_alarm_simultaneous (void) { - test_sleep (5, 5); + test_sleep (3, 5); } /* Information about the test. */ diff --git a/src/tests/threads/alarm-simultaneous.ck b/src/tests/threads/alarm-simultaneous.ck index 7cec517..406b8b0 100644 --- a/src/tests/threads/alarm-simultaneous.ck +++ b/src/tests/threads/alarm-simultaneous.ck @@ -4,34 +4,24 @@ use warnings; use tests::tests; check_expected ([<<'EOF']); (alarm-simultaneous) begin -(alarm-simultaneous) Creating 5 threads to sleep 5 times each. +(alarm-simultaneous) Creating 3 threads to sleep 5 times each. (alarm-simultaneous) Each thread sleeps 10 ticks each time. (alarm-simultaneous) Within an iteration, all threads should wake up on the same tick. (alarm-simultaneous) iteration 0, thread 0: woke up after 10 ticks (alarm-simultaneous) iteration 0, thread 1: woke up 0 ticks later (alarm-simultaneous) iteration 0, thread 2: woke up 0 ticks later -(alarm-simultaneous) iteration 0, thread 3: woke up 0 ticks later -(alarm-simultaneous) iteration 0, thread 4: woke up 0 ticks later (alarm-simultaneous) iteration 1, thread 0: woke up 10 ticks later (alarm-simultaneous) iteration 1, thread 1: woke up 0 ticks later (alarm-simultaneous) iteration 1, thread 2: woke up 0 ticks later -(alarm-simultaneous) iteration 1, thread 3: woke up 0 ticks later -(alarm-simultaneous) iteration 1, thread 4: woke up 0 ticks later (alarm-simultaneous) iteration 2, thread 0: woke up 10 ticks later (alarm-simultaneous) iteration 2, thread 1: woke up 0 ticks later (alarm-simultaneous) iteration 2, thread 2: woke up 0 ticks later -(alarm-simultaneous) iteration 2, thread 3: woke up 0 ticks later -(alarm-simultaneous) iteration 2, thread 4: woke up 0 ticks later (alarm-simultaneous) iteration 3, thread 0: woke up 10 ticks later (alarm-simultaneous) iteration 3, thread 1: woke up 0 ticks later (alarm-simultaneous) iteration 3, thread 2: woke up 0 ticks later -(alarm-simultaneous) iteration 3, thread 3: woke up 0 ticks later -(alarm-simultaneous) iteration 3, thread 4: woke up 0 ticks later (alarm-simultaneous) iteration 4, thread 0: woke up 10 ticks later (alarm-simultaneous) iteration 4, thread 1: woke up 0 ticks later (alarm-simultaneous) iteration 4, thread 2: woke up 0 ticks later -(alarm-simultaneous) iteration 4, thread 3: woke up 0 ticks later -(alarm-simultaneous) iteration 4, thread 4: woke up 0 ticks later (alarm-simultaneous) end EOF pass; -- 2.30.2