Changeset 828049cb in rtems


Ignore:
Timestamp:
Mar 8, 2018, 7:48:28 AM (14 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
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.

Location:
testsuites/sptests/sp19
Files:
2 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
  • testsuites/sptests/sp19/system.h

    r0231ebc r828049cb  
    4141#define CONFIGURE_MAXIMUM_TASKS             7
    4242
    43 #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     43void thread_switch_extension( Thread_Control *, Thread_Control * );
     44
     45#define CONFIGURE_INITIAL_EXTENSIONS \
     46  { .thread_switch = thread_switch_extension }, \
     47  RTEMS_TEST_INITIAL_EXTENSION
    4448
    4549#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
Note: See TracChangeset for help on using the changeset viewer.