From 3f72c7787eb9ad2e3bf846b7184fe283ab8a19c2 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 24 Oct 2017 19:00:39 +0000 Subject: Improved reports look. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10899 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/lib/ch_test.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'test/lib/ch_test.c') diff --git a/test/lib/ch_test.c b/test/lib/ch_test.c index f4612e421..ef5883108 100644 --- a/test/lib/ch_test.c +++ b/test/lib/ch_test.c @@ -94,6 +94,14 @@ static void print_line(void) { streamWrite(test_chp, (const uint8_t *)"\r\n", 2); } +static void print_fat_line(void) { + unsigned i; + + for (i = 0; i < 76; i++) + streamPut(test_chp, '='); + streamWrite(test_chp, (const uint8_t *)"\r\n", 2); +} + /*===========================================================================*/ /* Module exported functions. */ /*===========================================================================*/ @@ -255,12 +263,14 @@ msg_t test_execute(BaseSequentialStream *stream, const testsuite_t *tsp) { test_global_fail = false; tseq = 0; while (tsp->sequences[tseq] != NULL) { - print_line(); - test_print("--- Test Sequence "); +#if TEST_SHOW_SEQUENCES == TRUE + print_fat_line(); + test_print("=== Test Sequence "); test_printn(tseq + 1); test_print(" ("); test_print(tsp->sequences[tseq]->name); test_println(")"); +#endif tcase = 0; while (tsp->sequences[tseq]->cases[tcase] != NULL) { print_line(); -- cgit v1.2.3