From 4c96ace1cac845806ace992402c4f02fc01faa04 Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Sat, 30 Nov 2019 02:06:04 -0800 Subject: [PATCH] testing read func call behavior --- tests.c | 9 +++++++-- tests.h | 5 +++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tests.c b/tests.c index 99d3bae..dec9aad 100644 --- a/tests.c +++ b/tests.c @@ -9,13 +9,18 @@ void test_serial_write() { printf("serial test write finished\n"); } -void test_write() { +void test_write(void) { char* msg1 = "Writing to fbout\n"; printf(msg1); } -void test_dispatcher() { +void test_dispatcher(void) { clear_fb(); test_write(); test_write(); } +void test_read(void) { + char buf[5]; + u32 bread = read(buf, 5); + printhex(bread); +} diff --git a/tests.h b/tests.h index a5389b5..106c7a2 100644 --- a/tests.h +++ b/tests.h @@ -1,5 +1,6 @@ #include "types.h" #include "stlio.h" -void test_write(); -void test_dispatcher(); +void test_write(void); +void test_dispatcher(void); +void test_read(void);