summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mutex.c3
-rw-r--r--test/pingpong.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/test/mutex.c b/test/mutex.c
index cc4202378c..866a004a58 100644
--- a/test/mutex.c
+++ b/test/mutex.c
@@ -9,6 +9,7 @@
#include "console.h"
#include "common.h"
#include "task.h"
+#include "test_util.h"
#include "timer.h"
#include "util.h"
@@ -108,7 +109,7 @@ int mutex_main_task(void *unused)
rdelay = prng(rdelay);
}
- ccprintf("Pass!\n");
+ test_pass();
task_wait_event(0);
return EC_SUCCESS;
diff --git a/test/pingpong.c b/test/pingpong.c
index 202dc8be38..852dbc3bdf 100644
--- a/test/pingpong.c
+++ b/test/pingpong.c
@@ -8,6 +8,7 @@
#include "common.h"
#include "console.h"
#include "task.h"
+#include "test_util.h"
#include "timer.h"
#include "util.h"
@@ -31,9 +32,9 @@ int TaskAbc(void *data)
if (myid == 2 && wake_count[myid] == TEST_COUNT) {
if (wake_count[0] == TEST_COUNT &&
wake_count[1] == TEST_COUNT)
- ccputs("Pass!\n");
+ test_pass();
else
- ccputs("Fail!\n");
+ test_fail();
wake_count[0] = wake_count[1] = wake_count[2] = 0;
task_wait_event(-1);
} else {