aboutsummaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test.c b/test/test.c
index 77759f5b8..58cad43c3 100644
--- a/test/test.c
+++ b/test/test.c
@@ -56,7 +56,7 @@ static ROMCONST struct testcase * ROMCONST *patterns[] = {
NULL
};
-static bool_t local_fail, global_fail;
+static bool local_fail, global_fail;
static unsigned failpoint;
static char tokens_buffer[MAX_TOKENS];
static char *tokp;
@@ -154,7 +154,7 @@ void test_emit_token(char token) {
/*
* Assertions.
*/
-bool_t _test_fail(unsigned point) {
+bool _test_fail(unsigned point) {
local_fail = TRUE;
global_fail = TRUE;
@@ -162,14 +162,14 @@ bool_t _test_fail(unsigned point) {
return TRUE;
}
-bool_t _test_assert(unsigned point, bool_t condition) {
+bool _test_assert(unsigned point, bool condition) {
if (!condition)
return _test_fail(point);
return FALSE;
}
-bool_t _test_assert_sequence(unsigned point, char *expected) {
+bool _test_assert_sequence(unsigned point, char *expected) {
char *cp = tokens_buffer;
while (cp < tokp) {
if (*cp++ != *expected++)
@@ -181,7 +181,7 @@ bool_t _test_assert_sequence(unsigned point, char *expected) {
return FALSE;
}
-bool_t _test_assert_time_window(unsigned point, systime_t start, systime_t end) {
+bool _test_assert_time_window(unsigned point, systime_t start, systime_t end) {
return _test_assert(point, chVTIsSystemTimeWithin(start, end));
}
@@ -255,7 +255,7 @@ systime_t test_wait_tick(void) {
/**
* @brief Set to @p TRUE when the test timer reaches its deadline.
*/
-bool_t test_timer_done;
+bool test_timer_done;
static virtual_timer_t vt;
static void tmr(void *p) {