From b406d071ec043529407f5ce4cb0fe7d71d805cc1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 1 Oct 2019 14:16:34 +0200 Subject: libtest: Do all output in test runner This ensures that lines are output atomically if they are produced by different other contexts, e.g. interrupts, other processors, other threads. Update #3199. --- testsuites/libtests/ttest01/init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testsuites/libtests') diff --git a/testsuites/libtests/ttest01/init.c b/testsuites/libtests/ttest01/init.c index 51cfa8badb..135dc2b25e 100644 --- a/testsuites/libtests/ttest01/init.c +++ b/testsuites/libtests/ttest01/init.c @@ -138,6 +138,8 @@ now(void) return t * SBT_1MS; } +static char buffer[512]; + static const T_action actions[] = { T_report_hash_sha256, test_action @@ -145,6 +147,8 @@ static const T_action actions[] = { static const T_config config = { .name = "ttest01", + .buf = buffer, + .buf_size = sizeof(buffer), .putchar = test_putchar, .putchar_arg = &test_instance, .verbosity = T_VERBOSE, -- cgit v1.2.3