aboutsummaryrefslogtreecommitdiff
path: root/src/tests/test.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-22 19:50:12 -0700
committerChristian Cunningham <cc@localhost>2022-03-22 19:50:12 -0700
commit4481ae56e80a3a425cfcbf81cd75ccc1619cdeaa (patch)
treedfa856c0f505972bf7ac63f7fdb5dc63730d4f42 /src/tests/test.c
parent43f236af3a8ac12c005a53d92cc03e87c402b316 (diff)
Fixed testing
Diffstat (limited to 'src/tests/test.c')
-rw-r--r--src/tests/test.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/tests/test.c b/src/tests/test.c
index c3e5c83..b6ba5d3 100644
--- a/src/tests/test.c
+++ b/src/tests/test.c
@@ -41,31 +41,6 @@ void test_entry(void)
// Test 1: Tracing Time
dt = 0;
- ti = 0;
- tf = 0;
- int t1, t2;
- for(int i = 0; i < TEST_COUNT; i++) {
- sys0_32(SYS_TIME_2, &tf);
- sys0_32(SYS_TIME_2, &ti);
- dt += tf-ti;
- if ((tf-ti) < TEST_BIN_COUNT) {
- bins[(tf-ti)]++;
- }
- }
- for (int i = 0; i < TEST_BIN_COUNT; i++) {
- draw_hex32(tidx, y+6+i, i);
- draw_string(tidx+9, y+6+i, TEST_STR_CLR);
- draw_u10(tidx+9, y+6+i, bins[i]);
- bins[i] = 0;
- }
- draw_string(tidx, y+5, " ");
- len = draw_u10(tidx, y+5, dt/TEST_COUNT);
- draw_u10(tidx+len+1, y+5, dt%TEST_COUNT);
- tidx += TEST_RESULT_WIDTH;
- draw_hex32(0, y-1, nextpid);
-
- // Test 1: Tracing Time
- dt = 0;
for(int i = 0; i < TEST_COUNT; i++) {
sys0_32(SYS_TIME_2, &tf);
sys0_32(SYS_TIME_2, &ti);