Changeset 337a186 in rtems for testsuites/sptests/sp20/init.c


Ignore:
Timestamp:
Feb 21, 2018, 11:40:18 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
ff281a6f
Parents:
4899759
git-author:
Sebastian Huber <sebastian.huber@…> (02/21/18 11:40:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/06/18 11:32:09)
Message:

Add a simple task console driver

Close #3320.

File:
1 edited

Legend:

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

    r4899759 r337a186  
    2929const char rtems_test_name[] = "SP 20";
    3030
    31 #define BUFFER_COUNT 16
    32 
    33 #define BUFFER_SIZE 512
    34 
    35 static rtems_printer_task_context printer_task;
    36 
    37 static long buffers[ BUFFER_COUNT ][ BUFFER_SIZE / sizeof(long) ];
    38 
    3931void end_of_test( void )
    4032{
    4133  TEST_END();
    42   rtems_printer_task_drain( &printer_task );
     34  fsync(STDOUT_FILENO);
    4335  rtems_test_exit( 0 );
    4436}
     
    5244  rtems_status_code status;
    5345
    54   rtems_printer_task_set_priority( &printer_task, 254 );
    55   rtems_printer_task_set_file_descriptor( &printer_task, 1 );
    56   rtems_printer_task_set_buffer_table( &printer_task, &buffers[ 0 ][ 0 ] );
    57   rtems_printer_task_set_buffer_count( &printer_task, BUFFER_COUNT );
    58   rtems_printer_task_set_buffer_size( &printer_task, BUFFER_SIZE );
    59   error = rtems_print_printer_task( &rtems_test_printer, &printer_task );
    60   rtems_test_assert( error == 0 );
    61 
     46  rtems_print_printer_fprintf(&rtems_test_printer, stdout);
    6247  TEST_BEGIN();
    6348
Note: See TracChangeset for help on using the changeset viewer.