Changeset 337a186 in rtems for testsuites


Ignore:
Timestamp:
Feb 21, 2018, 11:40:18 AM (22 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
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.

Location:
testsuites
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/ada/sptests/sp20/config.h

    r4899759 r337a186  
    1414/* configuration information */
    1515
    16 #define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
     16#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER
    1717#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    1818
    19 #define CONFIGURE_MAXIMUM_TASKS               7
     19#define CONFIGURE_MAXIMUM_TASKS               8
    2020
    2121#define ADA_TEST_NAME "ADA SP 20"
  • testsuites/ada/support/init.c

    r4899759 r337a186  
    6565void ada_test_end(void)
    6666{
     67  fsync(STDOUT_FILENO);
    6768  rtems_test_end(rtems_test_name);
    6869}
  • 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
  • testsuites/sptests/sp20/system.h

    r4899759 r337a186  
    3434/* configuration information */
    3535
    36 #define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
     36#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER
    3737#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3838
Note: See TracChangeset for help on using the changeset viewer.