From 921398936d989aef06be8d869d9162e3d9b294b3 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sun, 13 Feb 2022 13:22:43 -0700 Subject: Output the count of the task stacks --- src/tests/test.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'src/tests') diff --git a/src/tests/test.c b/src/tests/test.c index c4abb3e..8b01706 100644 --- a/src/tests/test.c +++ b/src/tests/test.c @@ -29,11 +29,10 @@ void test_entry(void) dt += tf - ti; DRAW64(34, 19, dt/64); DRAW64(34+17, 19, dt%64); - btest(); + add_thread(btest, 0, 4); } static struct Mutex testm = {.addr = 0, .pid = 0}; -static int testi = 0; void ctest1(void) { @@ -59,16 +58,7 @@ void ctest3(void) void btest(void) { - if (testi % 3 == 0) { - testi++; - add_thread(ctest1, 0, 1); - } - else if (testi % 3 == 1) { - testi++; - add_thread(ctest2, 0, 0); - } - else if (testi % 3 == 2) { - testi++; - add_thread(ctest3, 0, 1); - } + add_thread(ctest1, 0, 1); + add_thread(ctest2, 0, 2); + add_thread(ctest3, 0, 3); } -- cgit v1.2.1