aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-22 16:48:33 -0700
committerChristian Cunningham <cc@localhost>2022-03-22 16:48:33 -0700
commit8c1d4830ae5f8c9ec6cb1fe3df41be3300a820bd (patch)
treeec72597c4655d1c81ee2a8f3a31bb37bd5a9bbec /src/tests
parent798e73e7142f02a2cf7261a37095a84db47d877b (diff)
Use noop test for threads
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/test.c b/src/tests/test.c
index be37048..1aaa4a9 100644
--- a/src/tests/test.c
+++ b/src/tests/test.c
@@ -12,6 +12,8 @@
extern void atest(void);
void qualitative_tests(void);
+void nooptest(void) {}
+
void mutex_contention_helper(struct Mutex* m)
{
lock_mutex(m);
@@ -84,7 +86,7 @@ void test_entry(void)
dt = 0;
for(int i = 0; i < TEST_COUNT; i++) {
sys0_64(SYS_TIME, &ti);
- add_thread(atest, 0, 3);
+ add_thread(nooptest, 0, 3);
sys0_64(SYS_TIME, &tf);
dt += tf - ti;
if ((tf-ti) < TEST_BIN_COUNT)
@@ -106,7 +108,7 @@ void test_entry(void)
dt = 0;
for(int i = 0; i < TEST_COUNT; i++) {
sys0_64(SYS_TIME, &ti);
- add_thread(atest, 0, 0);
+ add_thread(nooptest, 0, 0);
sys0_64(SYS_TIME, &tf);
dt += tf - ti;
if ((tf-ti) < TEST_BIN_COUNT)