diff options
Diffstat (limited to 'test/test.h')
-rw-r--r-- | test/test.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/test.h b/test/test.h index a0acbd1f7..d1deaf687 100644 --- a/test/test.h +++ b/test/test.h @@ -55,10 +55,10 @@ extern "C" { void test_print(char *msgp);
void test_println(char *msgp);
void test_emit_token(char token);
- bool_t _test_fail(char * msg);
- bool_t _test_assert(bool_t condition, char * msg);
- bool_t _test_assert_sequence(char *expected);
- bool_t _test_assert_time_window(systime_t start, systime_t end);
+ bool_t _test_fail(unsigned point);
+ bool_t _test_assert(unsigned point, bool_t condition);
+ bool_t _test_assert_sequence(unsigned point, char *expected);
+ bool_t _test_assert_time_window(unsigned point, systime_t start, systime_t end);
void test_terminate_threads(void);
void test_wait_threads(void);
systime_t test_wait_tick(void);
@@ -71,23 +71,23 @@ extern "C" { }
#endif
-#define test_fail(msg) { \
- test_fail(msg); \
+#define test_fail(point) { \
+ test_fail(point); \
return; \
}
-#define test_assert(condition, msg) { \
- if (_test_assert(condition, msg)) \
+#define test_assert(point, condition, msg) { \
+ if (_test_assert(point, condition)) \
return; \
}
-#define test_assert_sequence(expected) { \
- if (_test_assert_sequence(expected)) \
+#define test_assert_sequence(point, expected) { \
+ if (_test_assert_sequence(point, expected)) \
return; \
}
-#define test_assert_time_window(start, end) { \
- if (_test_assert_time_window(start, end)) \
+#define test_assert_time_window(point, start, end) { \
+ if (_test_assert_time_window(point, start, end)) \
return; \
}
|