summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp35
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-10-19 16:39:16 +1100
committerChris Johns <chrisj@rtems.org>2017-10-23 16:25:45 +1100
commit98c6d501452f02264ff148a1b8479e420c81562d (patch)
tree8c6cd90ccd1df98f782396d94d6acdbfe5d042cb /testsuites/sptests/sp35
parentposix: Fix POSIX disabled build (diff)
downloadrtems-98c6d501452f02264ff148a1b8479e420c81562d.tar.bz2
testsuite: Use printk for all test output where possible.
- Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk. - Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate. Updates #3170.
Diffstat (limited to 'testsuites/sptests/sp35')
-rw-r--r--testsuites/sptests/sp35/priinv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuites/sptests/sp35/priinv.c b/testsuites/sptests/sp35/priinv.c
index 8848348758..69f3ca399b 100644
--- a/testsuites/sptests/sp35/priinv.c
+++ b/testsuites/sptests/sp35/priinv.c
@@ -51,6 +51,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#include <bsp.h>
#include <stdio.h>
#include "tmacros.h"
@@ -232,7 +234,7 @@ rtems_isr LocalHwIsr(/*in*/ rtems_vector_number Vector)
/* Signal synchroniztion semaphore to invoke waiting task */
status = rtems_semaphore_release(LocalHwSync_S);
if (status != RTEMS_SUCCESSFUL) {
- fprintf( stderr, "LocalHwISR release %d\n", status );
+ printf( "LocalHwISR release %d\n", status );
while(1); /* Error */
}