aboutsummaryrefslogtreecommitdiffstats
path: root/test/test.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-04-25 11:12:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-04-25 11:12:10 +0000
commita2a88226488db68ca8435a72ed608bf5ec9df464 (patch)
tree1232bb7af969baa856631cc4d3e9643cdb55f667 /test/test.h
parentc031b80726d1472098bb6e352eba561e3ab2e766 (diff)
downloadChibiOS-a2a88226488db68ca8435a72ed608bf5ec9df464.tar.gz
ChibiOS-a2a88226488db68ca8435a72ed608bf5ec9df464.tar.bz2
ChibiOS-a2a88226488db68ca8435a72ed608bf5ec9df464.zip
Changes to the test suite in order to save RAM on AVR targets.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@917 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/test.h')
-rw-r--r--test/test.h24
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; \
}