diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-09-03 08:48:20 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-09-03 08:48:20 +0000 |
commit | 9d0c6fb8bf7bf63c137d7c19fdefc7760d2f133a (patch) | |
tree | 86acab83e6b86703239954be6d8240cf49accb8b /test/test.c | |
parent | 156a195bf72bd366f91e03c170ad4b344797778a (diff) | |
download | ChibiOS-9d0c6fb8bf7bf63c137d7c19fdefc7760d2f133a.tar.gz ChibiOS-9d0c6fb8bf7bf63c137d7c19fdefc7760d2f133a.tar.bz2 ChibiOS-9d0c6fb8bf7bf63c137d7c19fdefc7760d2f133a.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6250 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/test.c')
-rw-r--r-- | test/test.c | 12 |
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) {
|