diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-10-01 14:16:34 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-10-11 08:55:49 +0200 |
commit | b406d071ec043529407f5ce4cb0fe7d71d805cc1 (patch) | |
tree | 34661169cc9ed7f6566cc5c125d216096406ca14 /testsuites/libtests | |
parent | ttest01: Adjust SPDX-License-Identifier (diff) | |
download | rtems-b406d071ec043529407f5ce4cb0fe7d71d805cc1.tar.bz2 |
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.
Diffstat (limited to 'testsuites/libtests')
-rw-r--r-- | testsuites/libtests/ttest01/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
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, |