Changeset ba39113 in rtems


Ignore:
Timestamp:
Feb 22, 1996, 8:14:36 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
8e76546
Parents:
66d9e3ad
Message:

The name of the test support routine pause was changed to rtems_test_pause
to avoid conflict with the standard POSIX routine pause(2).

Files:
26 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/sptests/sp07/task1.c

    r66d9e3ad rba39113  
    3030  rtems_task_priority previous_priority;
    3131
    32   pause();
     32  rtems_test_pause();
    3333
    3434  status = rtems_task_set_priority(
  • c/src/tests/sptests/sp09/task1.c

    r66d9e3ad rba39113  
    2121#include "system.h"
    2222
    23 #ifdef pause
    24 #undef pause
    25 #endif
    26 
    2723rtems_task Task_1(
    2824  rtems_task_argument argument
     
    3026{
    3127  Screen1();
    32   pause_and_screen_number( 2 );
     28  rtems_test_pause_and_screen_number( 2 );
    3329
    3430  Screen2();
    35   pause_and_screen_number( 3 );
     31  rtems_test_pause_and_screen_number( 3 );
    3632
    3733  Screen3();
    38   pause_and_screen_number( 4 );
     34  rtems_test_pause_and_screen_number( 4 );
    3935
    4036  Screen4();
    41   pause_and_screen_number( 5 );
     37  rtems_test_pause_and_screen_number( 5 );
    4238
    4339  Screen5();
    44   pause_and_screen_number( 6 );
     40  rtems_test_pause_and_screen_number( 6 );
    4541
    4642  Screen6();
    47   pause_and_screen_number( 7 );
     43  rtems_test_pause_and_screen_number( 7 );
    4844
    4945  Screen7();
    50   pause_and_screen_number( 8 );
     46  rtems_test_pause_and_screen_number( 8 );
    5147
    5248  Screen8();
    53   pause_and_screen_number( 9 );
     49  rtems_test_pause_and_screen_number( 9 );
    5450
    5551  Screen9();
    56   pause_and_screen_number( 10 );
     52  rtems_test_pause_and_screen_number( 10 );
    5753
    5854  Screen10();
    59   pause_and_screen_number( 11 );
     55  rtems_test_pause_and_screen_number( 11 );
    6056
    6157  Screen11();
    62   pause_and_screen_number( 12 );
     58  rtems_test_pause_and_screen_number( 12 );
    6359
    6460  Screen12();
    65   pause_and_screen_number( 13 );
     61  rtems_test_pause_and_screen_number( 13 );
    6662
    6763  Screen13();
    68   pause_and_screen_number( 14 );
     64  rtems_test_pause_and_screen_number( 14 );
    6965
    7066  Screen14();
  • c/src/tests/sptests/sp11/task1.c

    r66d9e3ad rba39113  
    7474  print_time( "TA1 - rtems_clock_get - ", &time, "\n" );
    7575
    76 pause();
     76rtems_test_pause();
    7777
    7878  puts( "TA1 - rtems_event_send - send RTEMS_EVENT_18 to self after 5 seconds");
     
    133133  printf( "TA1 - RTEMS_EVENT_4 received - eventout => %08x\n", eventout );
    134134
    135 pause();
     135rtems_test_pause();
    136136
    137137  puts( "TA1 - rtems_event_send - send RTEMS_EVENT_18 to self after 5 seconds");
     
    223223  directive_failed( status, "rtems_timer_cancel" );
    224224
    225 pause();
     225rtems_test_pause();
    226226
    227227  time.day = 13;
     
    292292  printf( "TA1 - RTEMS_EVENT_11 received - eventout => %08x\n", eventout );
    293293
    294 pause();
     294rtems_test_pause();
    295295
    296296  puts( "TA1 - rtems_event_send/rtems_event_receive combination" );
  • c/src/tests/sptests/sp12/init.c

    r66d9e3ad rba39113  
    8383  Priority_test_driver( 32 );
    8484
    85 pause();
     85rtems_test_pause();
    8686
    8787  puts( "INIT - Binary Semaphore and Priority Inheritance Test" );
     
    119119  Priority_test_driver( 64 );
    120120
    121 pause();
     121rtems_test_pause();
    122122
    123123  status = rtems_semaphore_delete( Semaphore_id[ 2 ] );
  • c/src/tests/sptests/sp12/task1.c

    r66d9e3ad rba39113  
    6767  directive_failed( status, "rtems_task_wake_after" );
    6868
    69 pause();
     69rtems_test_pause();
    7070
    7171  puts( "TA1 - rtems_semaphore_release - release SM1" );
     
    9292  directive_failed( status, "rtems_task_wake_after" );
    9393
    94 pause();
     94rtems_test_pause();
    9595
    9696  puts( "TA1 - rtems_task_delete - delete TA3" );
  • c/src/tests/sptests/sp13/task1.c

    r66d9e3ad rba39113  
    8989  directive_failed( status, "rtems_task_wake_after" );
    9090
    91 pause();
     91rtems_test_pause();
    9292
    9393  Fill_buffer( "BUFFER 1 TO Q 2", buffer );
     
    123123  directive_failed( status, "rtems_task_wake_after" );
    124124
    125 pause();
     125rtems_test_pause();
    126126
    127127  Fill_buffer( "BUFFER 2 TO Q 3", buffer );
     
    184184  new_line;
    185185
    186 pause();
     186rtems_test_pause();
    187187
    188188  puts( "TA1 - rtems_message_queue_delete - delete queue 1" );
     
    234234  printf( "TA1 - %d messages were flushed from Q 3\n", count );
    235235
    236 pause();
     236rtems_test_pause();
    237237
    238238  puts( "TA1 - create message queue of 20 bytes on queue 1" );
     
    252252  directive_failed( status, "rtems_message_queue_delete" );
    253253
    254 pause();
     254rtems_test_pause();
    255255 
    256256  puts( "TA1 - rtems_message_queue_create - variable sizes " );
  • c/src/tests/sptests/sp14/task1.c

    r66d9e3ad rba39113  
    6161  directive_failed( status, "rtems_signal_catch" );
    6262
    63 pause();
     63rtems_test_pause();
    6464
    6565  puts( "TA1 - rtems_signal_send - RTEMS_SIGNAL_1 to self" );
  • c/src/tests/sptests/sp16/task1.c

    r66d9e3ad rba39113  
    8282  directive_failed( status, "rtems_task_wake_after" );
    8383
    84 pause();
     84rtems_test_pause();
    8585
    8686  puts_nocr(
     
    124124  directive_failed( status, "rtems_task_delete of TA3" );
    125125
    126 pause();
     126rtems_test_pause();
    127127
    128128  status = rtems_task_create(
  • c/src/tests/sptests/sp22/task1.c

    r66d9e3ad rba39113  
    8383  Print_time();
    8484
    85   pause();
     85  rtems_test_pause();
    8686
    8787  /*
  • c/src/tests/sptests/sp25/task1.c

    r66d9e3ad rba39113  
    160160  new_line;
    161161
    162 pause();
     162rtems_test_pause();
    163163
    164164  puts_nocr(
  • c/src/tests/support/include/tmacros.h

    r66d9e3ad rba39113  
    7070#define puts_nocr printf
    7171
    72 #define pause() \
     72#define rtems_test_pause() \
    7373  do { \
    7474    char buffer[ 80 ]; \
     
    7878  } while ( 0 )
    7979
    80 #define pause_and_screen_number( _screen ) \
     80#define rtems_test_pause_and_screen_number( _screen ) \
    8181  do { \
    8282    char buffer[ 80 ]; \
  • c/src/tests/tmtests/tmck/task1.c

    r66d9e3ad rba39113  
    7272
    7373  check_read_timer();
    74 pause();
     74rtems_test_pause();
    7575
    7676  Timer_initialize();
  • c/src/tests/tmtests/tmoverhd/testtask.c

    r66d9e3ad rba39113  
    385385      );
    386386
    387 pause();
     387rtems_test_pause();
    388388
    389389/* rtems_timer_create */
     
    721721      );
    722722
    723 pause();
     723rtems_test_pause();
    724724
    725725/* rtems_event_send */
     
    10471047      );
    10481048
    1049 pause();
     1049rtems_test_pause();
    10501050
    10511051/* rtems_io_initialize */
  • testsuites/sptests/sp07/task1.c

    r66d9e3ad rba39113  
    3030  rtems_task_priority previous_priority;
    3131
    32   pause();
     32  rtems_test_pause();
    3333
    3434  status = rtems_task_set_priority(
  • testsuites/sptests/sp09/task1.c

    r66d9e3ad rba39113  
    2121#include "system.h"
    2222
    23 #ifdef pause
    24 #undef pause
    25 #endif
    26 
    2723rtems_task Task_1(
    2824  rtems_task_argument argument
     
    3026{
    3127  Screen1();
    32   pause_and_screen_number( 2 );
     28  rtems_test_pause_and_screen_number( 2 );
    3329
    3430  Screen2();
    35   pause_and_screen_number( 3 );
     31  rtems_test_pause_and_screen_number( 3 );
    3632
    3733  Screen3();
    38   pause_and_screen_number( 4 );
     34  rtems_test_pause_and_screen_number( 4 );
    3935
    4036  Screen4();
    41   pause_and_screen_number( 5 );
     37  rtems_test_pause_and_screen_number( 5 );
    4238
    4339  Screen5();
    44   pause_and_screen_number( 6 );
     40  rtems_test_pause_and_screen_number( 6 );
    4541
    4642  Screen6();
    47   pause_and_screen_number( 7 );
     43  rtems_test_pause_and_screen_number( 7 );
    4844
    4945  Screen7();
    50   pause_and_screen_number( 8 );
     46  rtems_test_pause_and_screen_number( 8 );
    5147
    5248  Screen8();
    53   pause_and_screen_number( 9 );
     49  rtems_test_pause_and_screen_number( 9 );
    5450
    5551  Screen9();
    56   pause_and_screen_number( 10 );
     52  rtems_test_pause_and_screen_number( 10 );
    5753
    5854  Screen10();
    59   pause_and_screen_number( 11 );
     55  rtems_test_pause_and_screen_number( 11 );
    6056
    6157  Screen11();
    62   pause_and_screen_number( 12 );
     58  rtems_test_pause_and_screen_number( 12 );
    6359
    6460  Screen12();
    65   pause_and_screen_number( 13 );
     61  rtems_test_pause_and_screen_number( 13 );
    6662
    6763  Screen13();
    68   pause_and_screen_number( 14 );
     64  rtems_test_pause_and_screen_number( 14 );
    6965
    7066  Screen14();
  • testsuites/sptests/sp11/task1.c

    r66d9e3ad rba39113  
    7474  print_time( "TA1 - rtems_clock_get - ", &time, "\n" );
    7575
    76 pause();
     76rtems_test_pause();
    7777
    7878  puts( "TA1 - rtems_event_send - send RTEMS_EVENT_18 to self after 5 seconds");
     
    133133  printf( "TA1 - RTEMS_EVENT_4 received - eventout => %08x\n", eventout );
    134134
    135 pause();
     135rtems_test_pause();
    136136
    137137  puts( "TA1 - rtems_event_send - send RTEMS_EVENT_18 to self after 5 seconds");
     
    223223  directive_failed( status, "rtems_timer_cancel" );
    224224
    225 pause();
     225rtems_test_pause();
    226226
    227227  time.day = 13;
     
    292292  printf( "TA1 - RTEMS_EVENT_11 received - eventout => %08x\n", eventout );
    293293
    294 pause();
     294rtems_test_pause();
    295295
    296296  puts( "TA1 - rtems_event_send/rtems_event_receive combination" );
  • testsuites/sptests/sp12/init.c

    r66d9e3ad rba39113  
    8383  Priority_test_driver( 32 );
    8484
    85 pause();
     85rtems_test_pause();
    8686
    8787  puts( "INIT - Binary Semaphore and Priority Inheritance Test" );
     
    119119  Priority_test_driver( 64 );
    120120
    121 pause();
     121rtems_test_pause();
    122122
    123123  status = rtems_semaphore_delete( Semaphore_id[ 2 ] );
  • testsuites/sptests/sp12/task1.c

    r66d9e3ad rba39113  
    6767  directive_failed( status, "rtems_task_wake_after" );
    6868
    69 pause();
     69rtems_test_pause();
    7070
    7171  puts( "TA1 - rtems_semaphore_release - release SM1" );
     
    9292  directive_failed( status, "rtems_task_wake_after" );
    9393
    94 pause();
     94rtems_test_pause();
    9595
    9696  puts( "TA1 - rtems_task_delete - delete TA3" );
  • testsuites/sptests/sp13/task1.c

    r66d9e3ad rba39113  
    8989  directive_failed( status, "rtems_task_wake_after" );
    9090
    91 pause();
     91rtems_test_pause();
    9292
    9393  Fill_buffer( "BUFFER 1 TO Q 2", buffer );
     
    123123  directive_failed( status, "rtems_task_wake_after" );
    124124
    125 pause();
     125rtems_test_pause();
    126126
    127127  Fill_buffer( "BUFFER 2 TO Q 3", buffer );
     
    184184  new_line;
    185185
    186 pause();
     186rtems_test_pause();
    187187
    188188  puts( "TA1 - rtems_message_queue_delete - delete queue 1" );
     
    234234  printf( "TA1 - %d messages were flushed from Q 3\n", count );
    235235
    236 pause();
     236rtems_test_pause();
    237237
    238238  puts( "TA1 - create message queue of 20 bytes on queue 1" );
     
    252252  directive_failed( status, "rtems_message_queue_delete" );
    253253
    254 pause();
     254rtems_test_pause();
    255255 
    256256  puts( "TA1 - rtems_message_queue_create - variable sizes " );
  • testsuites/sptests/sp14/task1.c

    r66d9e3ad rba39113  
    6161  directive_failed( status, "rtems_signal_catch" );
    6262
    63 pause();
     63rtems_test_pause();
    6464
    6565  puts( "TA1 - rtems_signal_send - RTEMS_SIGNAL_1 to self" );
  • testsuites/sptests/sp16/task1.c

    r66d9e3ad rba39113  
    8282  directive_failed( status, "rtems_task_wake_after" );
    8383
    84 pause();
     84rtems_test_pause();
    8585
    8686  puts_nocr(
     
    124124  directive_failed( status, "rtems_task_delete of TA3" );
    125125
    126 pause();
     126rtems_test_pause();
    127127
    128128  status = rtems_task_create(
  • testsuites/sptests/sp22/task1.c

    r66d9e3ad rba39113  
    8383  Print_time();
    8484
    85   pause();
     85  rtems_test_pause();
    8686
    8787  /*
  • testsuites/sptests/sp25/task1.c

    r66d9e3ad rba39113  
    160160  new_line;
    161161
    162 pause();
     162rtems_test_pause();
    163163
    164164  puts_nocr(
  • testsuites/support/include/tmacros.h

    r66d9e3ad rba39113  
    7070#define puts_nocr printf
    7171
    72 #define pause() \
     72#define rtems_test_pause() \
    7373  do { \
    7474    char buffer[ 80 ]; \
     
    7878  } while ( 0 )
    7979
    80 #define pause_and_screen_number( _screen ) \
     80#define rtems_test_pause_and_screen_number( _screen ) \
    8181  do { \
    8282    char buffer[ 80 ]; \
  • testsuites/tmtests/tmck/task1.c

    r66d9e3ad rba39113  
    7272
    7373  check_read_timer();
    74 pause();
     74rtems_test_pause();
    7575
    7676  Timer_initialize();
  • testsuites/tmtests/tmoverhd/testtask.c

    r66d9e3ad rba39113  
    385385      );
    386386
    387 pause();
     387rtems_test_pause();
    388388
    389389/* rtems_timer_create */
     
    721721      );
    722722
    723 pause();
     723rtems_test_pause();
    724724
    725725/* rtems_event_send */
     
    10471047      );
    10481048
    1049 pause();
     1049rtems_test_pause();
    10501050
    10511051/* rtems_io_initialize */
Note: See TracChangeset for help on using the changeset viewer.