diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/coverage/chcore.h | 5 | ||||
-rw-r--r-- | test/test.c | 22 |
2 files changed, 22 insertions, 5 deletions
diff --git a/test/coverage/chcore.h b/test/coverage/chcore.h index 321bd816e..9347a7d5e 100644 --- a/test/coverage/chcore.h +++ b/test/coverage/chcore.h @@ -31,6 +31,11 @@ #define CH_ARCHITECTURE_WIN32SIM
/**
+ * Name of the implemented architecture.
+ */
+#define CH_ARCHITECTURE_NAME "WIN32 Simulator"
+
+/**
* 32 bit stack alignment.
*/
typedef uint32_t stkalign_t;
diff --git a/test/test.c b/test/test.c index 531928bbe..d64ec06bd 100644 --- a/test/test.c +++ b/test/test.c @@ -228,14 +228,26 @@ static void execute_test(const struct testcase *tcp) { test_wait_threads();
}
+static void print_line(void) {
+ unsigned i;
+
+ for (i = 0; i < 76; i++)
+ chFDDPut(comp, '-');
+ chFDDPut(comp, '\r');
+ chFDDPut(comp, '\n');
+}
+
msg_t TestThread(void *p) {
int i, j;
comp = p;
test_println("");
- test_println("*****************************");
- test_println("*** ChibiOS/RT test suite ***");
- test_println("*****************************");
+ test_println("*** ChibiOS/RT test suite");
+ test_println("***");
+ test_print("*** Kernel: ");
+ test_println(CH_KERNEL_VERSION);
+ test_print("*** Architecture: ");
+ test_println(CH_ARCHITECTURE_NAME);
test_println("");
global_fail = FALSE;
@@ -246,7 +258,7 @@ msg_t TestThread(void *p) { #if DELAY_BETWEEN_TESTS > 0
chThdSleepMilliseconds(DELAY_BETWEEN_TESTS);
#endif
- test_println("---------------------------------------------------------------------------");
+ print_line();
test_print("--- Test Case ");
test_printn(i + 1);
test_print(".");
@@ -268,7 +280,7 @@ msg_t TestThread(void *p) { }
i++;
}
- test_println("---------------------------------------------------------------------------");
+ print_line();
test_println("");
test_print("Final result: ");
if (global_fail)
|