Changeset 828049cb in rtems for testsuites/sptests/sp19/init.c


Ignore:
Timestamp:
Mar 8, 2018, 7:48:28 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
bc16c65
Parents:
0231ebc
git-author:
Sebastian Huber <sebastian.huber@…> (03/08/18 07:48:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/08/18 07:49:15)
Message:

sptests/sp19: Fix test output methods

Do not use fprintf() in non-fp tasks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp19/init.c

    r0231ebc r828049cb  
    2929const char rtems_test_name[] = "SP 19";
    3030
     31void thread_switch_extension( Thread_Control *executing, Thread_Control *heir )
     32{
     33  if ( heir->is_fp ) {
     34    rtems_print_printer_fprintf_putc( &rtems_test_printer );
     35  } else {
     36    rtems_print_printer_printk( &rtems_test_printer );
     37  }
     38}
     39
    3140rtems_task Init(
    3241  rtems_task_argument argument
     
    3544  rtems_status_code status;
    3645
    37   rtems_print_printer_fprintf_putc(&rtems_test_printer);
    3846  TEST_BEGIN();
    3947
Note: See TracChangeset for help on using the changeset viewer.