diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-02-16 18:22:49 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-02-16 18:22:49 +0000 |
commit | dd85cc143d987851bc7cc995cf6109136a16b930 (patch) | |
tree | 613d775200cd18e3d72d2ac14a16a96c7eca816e /test/testbmk.c | |
parent | cae6f99028cca8d347dc5c2290b7f40a38b91753 (diff) | |
download | ChibiOS-dd85cc143d987851bc7cc995cf6109136a16b930.tar.gz ChibiOS-dd85cc143d987851bc7cc995cf6109136a16b930.tar.bz2 ChibiOS-dd85cc143d987851bc7cc995cf6109136a16b930.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@773 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testbmk.c')
-rw-r--r-- | test/testbmk.c | 49 |
1 files changed, 32 insertions, 17 deletions
diff --git a/test/testbmk.c b/test/testbmk.c index 3fe32df00..f6dc58f20 100644 --- a/test/testbmk.c +++ b/test/testbmk.c @@ -23,8 +23,6 @@ static Semaphore sem1;
-static void empty(void) {}
-
static msg_t thread1(void *p) {
msg_t msg;
@@ -72,8 +70,8 @@ static void bmk1_execute(void) { const struct testcase testbmk1 = {
bmk1_gettest,
- empty,
- empty,
+ NULL,
+ NULL,
bmk1_execute
};
@@ -98,8 +96,8 @@ static void bmk2_execute(void) { const struct testcase testbmk2 = {
bmk2_gettest,
- empty,
- empty,
+ NULL,
+ NULL,
bmk2_execute
};
@@ -133,8 +131,8 @@ static void bmk3_execute(void) { const struct testcase testbmk3 = {
bmk3_gettest,
- empty,
- empty,
+ NULL,
+ NULL,
bmk3_execute
};
@@ -164,8 +162,8 @@ static void bmk4_execute(void) { const struct testcase testbmk4 = {
bmk4_gettest,
- empty,
- empty,
+ NULL,
+ NULL,
bmk4_execute
};
@@ -195,8 +193,8 @@ static void bmk5_execute(void) { const struct testcase testbmk5 = {
bmk5_gettest,
- empty,
- empty,
+ NULL,
+ NULL,
bmk5_execute
};
@@ -250,7 +248,7 @@ static void bmk6_execute(void) { const struct testcase testbmk6 = {
bmk6_gettest,
bmk6_setup,
- empty,
+ NULL,
bmk6_execute
};
@@ -288,8 +286,8 @@ static void bmk7_execute(void) { const struct testcase testbmk7 = {
bmk7_gettest,
- empty,
- empty,
+ NULL,
+ NULL,
bmk7_execute
};
@@ -325,7 +323,24 @@ static void bmk8_execute(void) { const struct testcase testbmk8 = {
bmk8_gettest,
- empty,
- empty,
+ NULL,
+ NULL,
bmk8_execute
};
+
+/*
+ * Test sequence for benchmarks pattern.
+ */
+const struct testcase *patternbmk[] = {
+#if TEST_NO_BENCHMARKS
+ &testbmk1,
+ &testbmk2,
+ &testbmk3,
+ &testbmk4,
+ &testbmk5,
+ &testbmk6,
+ &testbmk7,
+ &testbmk8,
+#endif
+ NULL
+};
|