diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-03-08 08:48:28 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-03-08 08:49:15 +0100 |
commit | 828049cb47d974fcc816a5bd8868fdaf670201a3 (patch) | |
tree | f524e3e9aaf8d20cb2c21dfb98d4819a1a622a9d /testsuites/sptests/sp19/init.c | |
parent | config: Remove RTEMS prefix from internal defines (diff) | |
download | rtems-828049cb47d974fcc816a5bd8868fdaf670201a3.tar.bz2 |
sptests/sp19: Fix test output methods
Do not use fprintf() in non-fp tasks.
Diffstat (limited to 'testsuites/sptests/sp19/init.c')
-rw-r--r-- | testsuites/sptests/sp19/init.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/testsuites/sptests/sp19/init.c b/testsuites/sptests/sp19/init.c index ee499fad6b..ef52f98444 100644 --- a/testsuites/sptests/sp19/init.c +++ b/testsuites/sptests/sp19/init.c @@ -28,13 +28,21 @@ const char rtems_test_name[] = "SP 19"; +void thread_switch_extension( Thread_Control *executing, Thread_Control *heir ) +{ + if ( heir->is_fp ) { + rtems_print_printer_fprintf_putc( &rtems_test_printer ); + } else { + rtems_print_printer_printk( &rtems_test_printer ); + } +} + rtems_task Init( rtems_task_argument argument ) { rtems_status_code status; - rtems_print_printer_fprintf_putc(&rtems_test_printer); TEST_BEGIN(); Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' ); |