aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-07 19:43:19 -0700
committerChristian Cunningham <cc@localhost>2022-02-07 19:43:19 -0700
commit0176673f3bea73d25fc34a65b911b942d9503aa7 (patch)
treee7a3cfd31f4f9e0f85a554dfdbf41fc39d65e12b /src/tests
parente0ba2e06ace89f0e17dd912e684f91c5a7f28f7c (diff)
Added test for yield time
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/test.c b/src/tests/test.c
index 3903d95..f6213ae 100644
--- a/src/tests/test.c
+++ b/src/tests/test.c
@@ -21,4 +21,10 @@ void test_entry(void)
// atest
add_thread(atest, 0, 0);
+ sys0_64(SYS_TIME, &ti);
+ sys0(SYS_YIELD);
+ sys0_64(SYS_TIME, &tf);
+ dt += tf - ti;
+ DRAW64(34, 19, dt/64);
+ DRAW64(34+17, 19, dt%64);
}