Changeset d802489 in rtems


Ignore:
Timestamp:
Aug 2, 2002, 12:53:21 AM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
6b9d16f
Parents:
116845e8
Message:

2002-08-01 Joel Sherrill <joel@…>

  • Per PR47 add support for buffered test output. This involved adding defines to redirect output to a buffer and dump it when full, at "test pause", and at exit. To avoid problems when redefining exit(), all tests were modified to call rtems_test_exit(). Some tests, notable psxtests, had to be modified to include the standard test macro .h file (pmacros.h or tmacros.h) to enable this support.
  • include/pmacros.h, psx01/task.c, psx02/init.c, psx02/task.c, psx03/init.c, psx04/init.c, psx05/init.c, psx06/init.c, psx07/init.c, psx08/task3.c, psx09/init.c, psx10/init.c, psx11/init.c, psx12/init.c, psx13/Makefile.am, psx13/main.c, psx13/test.c, psxcancel/init.c, psxchroot01/Makefile.am, psxchroot01/main.c, psxchroot01/test.c, psxfile01/Makefile.am, psxfile01/main.c, psxfile01/test.c, psxfile01/test_cat.c, psxfile01/test_extend.c, psxfile01/test_write.c, psxmount/Makefile.am, psxmount/main.c, psxmount/test.c, psxmsgq01/init.c, psxreaddir/Makefile.am, psxreaddir/main.c, psxreaddir/test.c, psxsem01/init.c, psxstat/Makefile.am, psxstat/main.c, psxstat/test.c, psxtime/main.c, psxtime/test.c, psxtimer/psxtimer.c: Modified.
Files:
84 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/ChangeLog

    r116845e8 rd802489  
     12002-08-01      Joel Sherrill <joel@OARcorp.com>
     2
     3        * Per PR47 add support for buffered test output.  This involved
     4        adding defines to redirect output to a buffer and dump it when
     5        full, at "test pause", and at exit.  To avoid problems when redefining
     6        exit(), all tests were modified to call rtems_test_exit().
     7        Some tests, notable psxtests, had to be modified to include
     8        the standard test macro .h file (pmacros.h or tmacros.h) to
     9        enable this support.
     10        * include/pmacros.h, psx01/task.c, psx02/init.c, psx02/task.c,
     11        psx03/init.c, psx04/init.c, psx05/init.c, psx06/init.c, psx07/init.c,
     12        psx08/task3.c, psx09/init.c, psx10/init.c, psx11/init.c,
     13        psx12/init.c, psx13/Makefile.am, psx13/main.c, psx13/test.c,
     14        psxcancel/init.c, psxchroot01/Makefile.am, psxchroot01/main.c,
     15        psxchroot01/test.c, psxfile01/Makefile.am, psxfile01/main.c,
     16        psxfile01/test.c, psxfile01/test_cat.c, psxfile01/test_extend.c,
     17        psxfile01/test_write.c, psxmount/Makefile.am, psxmount/main.c,
     18        psxmount/test.c, psxmsgq01/init.c, psxreaddir/Makefile.am,
     19        psxreaddir/main.c, psxreaddir/test.c, psxsem01/init.c,
     20        psxstat/Makefile.am, psxstat/main.c, psxstat/test.c, psxtime/main.c,
     21        psxtime/test.c, psxtimer/psxtimer.c: Modified.
     22
    1232002-07-05      Joel Sherrill <joel@OARcorp.com>
    224
  • c/src/tests/psxtests/include/pmacros.h

    r116845e8 rd802489  
    1313#include <time.h>
    1414#include <unistd.h>
     15
     16#include <buffer_test_io.h>
    1517
    1618/*
     
    6870#define print_current_time(s1, s2) \
    6971  do { \
    70     char _buffer[32]; \
     72    char _time_buffer[32]; \
    7173    int  _status; \
    7274    struct timespec _tv; \
     
    7577    assert( !_status ); \
    7678    \
    77     (void) ctime_r( &_tv.tv_sec, _buffer ); \
    78     _buffer[ strlen( _buffer ) - 1 ] = 0; \
    79     printf( "%s%s%s\n", s1, _buffer, s2 ); \
     79    (void) ctime_r( &_tv.tv_sec, _time_buffer ); \
     80    _time_buffer[ strlen( _time_buffer ) - 1 ] = 0; \
     81    printf( "%s%s%s\n", s1, _time_buffer, s2 ); \
    8082    fflush(stdout); \
    8183  } while ( 0 )
  • c/src/tests/psxtests/psx01/task.c

    r116845e8 rd802489  
    8888
    8989  puts( "*** END OF POSIX TEST 1 ***" );
    90   exit( 0 );
     90  rtems_test_exit( 0 );
    9191
    9292  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx02/init.c

    r116845e8 rd802489  
    140140
    141141  puts( "*** END OF POSIX TEST 2 ***" );
    142   exit( 0 );
     142  rtems_test_exit( 0 );
    143143
    144144  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx02/task.c

    r116845e8 rd802489  
    3939  }
    4040  puts( "*** END OF POSIX TEST 2 ***" );
    41   exit( 0 );
     41  rtems_test_exit( 0 );
    4242
    4343  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx03/init.c

    r116845e8 rd802489  
    198198
    199199  puts( "*** END OF POSIX TEST 3 ***" );
    200   exit( 0 );
     200  rtems_test_exit( 0 );
    201201
    202202  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx04/init.c

    r116845e8 rd802489  
    552552
    553553  puts( "*** END OF POSIX TEST 4 ***" );
    554   exit( 0 );
     554  rtems_test_exit( 0 );
    555555
    556556  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx05/init.c

    r116845e8 rd802489  
    578578
    579579  puts( "*** END OF POSIX TEST 5 ***" );
    580   exit( 0 );
     580  rtems_test_exit( 0 );
    581581
    582582  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx06/init.c

    r116845e8 rd802489  
    115115
    116116  puts( "*** END OF POSIX TEST 6 ***" );
    117   exit( 0 );
     117  rtems_test_exit( 0 );
    118118
    119119  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx07/init.c

    r116845e8 rd802489  
    488488
    489489  puts( "*** END OF POSIX TEST 7 ***" );
    490   exit( 0 );
     490  rtems_test_exit( 0 );
    491491
    492492  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx08/task3.c

    r116845e8 rd802489  
    4646
    4747  puts( "*** END OF POSIX TEST 8 ***" );
    48   exit( 0 );
     48  rtems_test_exit( 0 );
    4949
    5050  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx09/init.c

    r116845e8 rd802489  
    220220
    221221  puts( "*** END OF POSIX TEST 9 ***" );
    222   exit( 0 );
     222  rtems_test_exit( 0 );
    223223
    224224  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx10/init.c

    r116845e8 rd802489  
    306306
    307307  puts( "*** END OF POSIX TEST 10 ***" );
    308   exit( 0 );
     308  rtems_test_exit( 0 );
    309309
    310310  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx11/init.c

    r116845e8 rd802489  
    102102
    103103  puts( "*** END OF POSIX TEST 11 ***" );
    104   exit( 0 );
     104  rtems_test_exit( 0 );
    105105
    106106  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx12/init.c

    r116845e8 rd802489  
    134134
    135135  puts( "*** END OF POSIX TEST 12 ***" );
    136   exit( 0 );
     136  rtems_test_exit( 0 );
    137137
    138138  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psx13/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • c/src/tests/psxtests/psx13/main.c

    r116845e8 rd802489  
    1515
    1616#include <bsp.h>
     17#include <pmacros.h>
    1718
    1819void test_main( void );
     
    2324{
    2425  test_main();
    25   exit( 0 );
     26  rtems_test_exit( 0 );
    2627}
    2728
  • c/src/tests/psxtests/psx13/test.c

    r116845e8 rd802489  
    3434
    3535#include <stdio.h>
     36
     37#include <pmacros.h>
    3638
    3739/*-------------------------------------------------------------------
     
    670672
    671673  printf( "\n\n*** END OF TEST PSX13 ***" );
    672   exit(0);
     674  rtems_test_exit(0);
    673675}
    674676
  • c/src/tests/psxtests/psxcancel/init.c

    r116845e8 rd802489  
    3030
    3131#include <bsp.h> /* for device driver prototypes */
     32#include <pmacros.h>
    3233
    3334rtems_task Init( rtems_task_argument argument);
     
    9394    if (task_ret) {
    9495      perror("pthread_create: countTask");
    95       exit(EXIT_FAILURE);
     96      rtems_test_exit(EXIT_FAILURE);
    9697    }
    9798    /* sleep for 5 seconds, then cancel it */
     
    107108    if (task_ret) {
    108109      perror("pthread_create: countTask");
    109       exit(EXIT_FAILURE);
     110      rtems_test_exit(EXIT_FAILURE);
    110111    }
    111112    /* sleep for 5 seconds, then cancel it */
     
    121122  return 0;
    122123#else
    123   exit(EXIT_SUCCESS);
     124  rtems_test_exit(EXIT_SUCCESS);
    124125#endif
    125126}
  • c/src/tests/psxtests/psxchroot01/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • c/src/tests/psxtests/psxchroot01/main.c

    r116845e8 rd802489  
    66
    77#include <bsp.h>
     8#include <pmacros.h>
    89
    910void test_main( void );
     
    1415{
    1516  test_main();
    16   exit( 0 );
     17  rtems_test_exit( 0 );
    1718}
    1819
  • c/src/tests/psxtests/psxchroot01/test.c

    r116845e8 rd802489  
    2929#include <errno.h>
    3030#include <rtems/libio.h>
     31#include <pmacros.h>
    3132
    3233void touch( char *file )
     
    118119
    119120  printf( "*** END OF CHROOT01 TEST ***\n" );
    120   exit(0);
     121  rtems_test_exit(0);
    121122}
    122123
  • c/src/tests/psxtests/psxfile01/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • c/src/tests/psxtests/psxfile01/main.c

    r116845e8 rd802489  
    1515
    1616#include <bsp.h>
     17#include <pmacros.h>
    1718
    1819void test_main( void );
     
    2324{
    2425  test_main();
    25   exit( 0 );
     26  rtems_test_exit( 0 );
    2627}
    2728
  • c/src/tests/psxtests/psxfile01/test.c

    r116845e8 rd802489  
    504504
    505505  printf( "*** END OF FILE TEST 1 ***\n" );
    506   exit( 0 );
     506  rtems_test_exit( 0 );
    507507}
    508508
  • c/src/tests/psxtests/psxfile01/test_cat.c

    r116845e8 rd802489  
    1717
    1818#include <assert.h>
     19
     20#include <pmacros.h>
    1921
    2022/*
     
    4547  if ( fd == -1 ) {
    4648    printf( "test_cat: open( %s ) failed : %s\n", file, strerror( errno ) );
    47     exit( 0 );
     49    rtems_test_exit( 0 );
    4850  }
    4951
  • c/src/tests/psxtests/psxfile01/test_extend.c

    r116845e8 rd802489  
    2222#include <assert.h>
    2323
     24#include <pmacros.h>
     25
    2426/*
    2527 *  test_extend routine
     
    3840  if ( fd == -1 ) {
    3941    printf( "test_extend: open( %s ) failed : %s\n", file, strerror( errno ) );
    40     exit( 0 );
     42    rtems_test_exit( 0 );
    4143  }
    4244
     
    4749  if ( status == -1 ) {
    4850    printf( "test_extend: write( %s ) failed : %s\n", file, strerror( errno ) );
    49     exit( 0 );
     51    rtems_test_exit( 0 );
    5052  }
    5153
     
    5355    printf( "test_extend: write( %s ) only wrote %d of %d bytes\n",
    5456            file, status, 1 );
    55     exit( 0 );
     57    rtems_test_exit( 0 );
    5658  }
    5759
  • c/src/tests/psxtests/psxfile01/test_write.c

    r116845e8 rd802489  
    1616
    1717#include <assert.h>
     18
     19#include <pmacros.h>
    1820
    1921/*
     
    3739  if ( fd == -1 ) {
    3840    printf( "test_write: open( %s ) failed : %s\n", file, strerror( errno ) );
    39     exit( 0 );
     41    rtems_test_exit( 0 );
    4042  }
    4143
     
    4648  if ( status == -1 ) {
    4749    printf( "test_write: write( %s ) failed : %s\n", file, strerror( errno ) );
    48     exit( 0 );
     50    rtems_test_exit( 0 );
    4951  }
    5052
     
    5254    printf( "test_write: write( %s ) only wrote %d of %d bytes\n",
    5355            file, status, length );
    54     exit( 0 );
     56    rtems_test_exit( 0 );
    5557  }
    5658
  • c/src/tests/psxtests/psxmount/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • c/src/tests/psxtests/psxmount/main.c

    r116845e8 rd802489  
    88
    99#include <bsp.h>
     10#include <pmacros.h>
    1011
    1112void test_main( void );
     
    1617{
    1718  test_main();
    18   exit( 0 );
     19  rtems_test_exit( 0 );
    1920}
    2021
  • c/src/tests/psxtests/psxmount/test.c

    r116845e8 rd802489  
    3232#include <rtems/libio.h>
    3333#include <imfs.h>
     34#include <pmacros.h>
    3435
    3536extern rtems_filesystem_location_info_t rtems_filesystem_current;
     
    442443
    443444  printf( "\n\n*** END OF MOUNT/UNMOUNT TEST ***\n" );
    444   exit(0);
     445  rtems_test_exit(0);
    445446}
    446447
  • c/src/tests/psxtests/psxmsgq01/init.c

    r116845e8 rd802489  
    11581158 
    11591159  puts( "*** END OF POSIX MESSAGE QUEUE TEST ***" );
    1160   exit( 0 );
     1160  rtems_test_exit( 0 );
    11611161
    11621162  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psxreaddir/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • c/src/tests/psxtests/psxreaddir/main.c

    r116845e8 rd802489  
    66
    77#include <bsp.h>
     8#include <pmacros.h>
    89
    910void test_main( void );
     
    1415{
    1516  test_main();
    16   exit( 0 );
     17  rtems_test_exit( 0 );
    1718}
    1819
  • c/src/tests/psxtests/psxreaddir/test.c

    r116845e8 rd802489  
    4949#if defined(__rtems__)
    5050#define d_type d_reclen
     51#include <pmacros.h>
    5152#endif
    5253
     
    496497  test_across_mount();
    497498  printf( "\n\n*** END OF READDIR TEST ***\n" );
    498   exit(0);
    499 }
    500 
     499  rtems_test_exit(0);
     500}
     501
  • c/src/tests/psxtests/psxsem01/init.c

    r116845e8 rd802489  
    240240
    241241  puts( "*** POSIX SEMAPHORE MANAGER TEST 1 COMPLETED ***" );
    242   exit(0);
     242  rtems_test_exit(0);
    243243
    244244  return NULL; /* just so the compiler thinks we returned something */
  • c/src/tests/psxtests/psxstat/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • c/src/tests/psxtests/psxstat/main.c

    r116845e8 rd802489  
    1515
    1616#include <bsp.h>
     17#include <pmacros.h>
    1718
    1819void test_main( void );
     
    2324{
    2425  test_main();
    25   exit( 0 );
     26  rtems_test_exit( 0 );
    2627}
    2728
  • c/src/tests/psxtests/psxstat/test.c

    r116845e8 rd802489  
    2525#include <rtems/libio.h>
    2626#include <imfs.h>
     27#include <pmacros.h>
    2728
    2829#define MAXSYMLINK 5   /* There needs to be a better way of getting this. */
     
    846847 
    847848  puts( "\n\n*** END OF STAT TEST 01 ***" );
    848   exit(0);
    849 }
    850 
    851 
    852 
    853 
    854 
    855 
    856 
     849  rtems_test_exit(0);
     850}
     851
     852
     853
     854
     855
     856
     857
  • c/src/tests/psxtests/psxtime/main.c

    r116845e8 rd802489  
    1515
    1616#include <bsp.h>
     17#include <tmacros.h>  /* instantiate buffering code if needed */
    1718
    1819void test_main( void );
     
    2324{
    2425  test_main();
    25   exit( 0 );
     26  rtems_test_exit( 0 );
    2627}
    2728
  • c/src/tests/psxtests/psxtime/test.c

    r116845e8 rd802489  
    111111
    112112  puts( "\n\n*** END OF TIME OF DAY TEST 01 ***" );
    113   exit(0);
     113  rtems_test_exit(0);
    114114}
    115115
  • c/src/tests/psxtests/psxtimer/psxtimer.c

    r116845e8 rd802489  
    333333   sleep (20);
    334334   puts( "\n\n*** End of POSIX Timers Test ***" );
    335    exit (0);
     335   rtems_test_exit (0);
    336336 }
    337337
  • testsuites/psxtests/ChangeLog

    r116845e8 rd802489  
     12002-08-01      Joel Sherrill <joel@OARcorp.com>
     2
     3        * Per PR47 add support for buffered test output.  This involved
     4        adding defines to redirect output to a buffer and dump it when
     5        full, at "test pause", and at exit.  To avoid problems when redefining
     6        exit(), all tests were modified to call rtems_test_exit().
     7        Some tests, notable psxtests, had to be modified to include
     8        the standard test macro .h file (pmacros.h or tmacros.h) to
     9        enable this support.
     10        * include/pmacros.h, psx01/task.c, psx02/init.c, psx02/task.c,
     11        psx03/init.c, psx04/init.c, psx05/init.c, psx06/init.c, psx07/init.c,
     12        psx08/task3.c, psx09/init.c, psx10/init.c, psx11/init.c,
     13        psx12/init.c, psx13/Makefile.am, psx13/main.c, psx13/test.c,
     14        psxcancel/init.c, psxchroot01/Makefile.am, psxchroot01/main.c,
     15        psxchroot01/test.c, psxfile01/Makefile.am, psxfile01/main.c,
     16        psxfile01/test.c, psxfile01/test_cat.c, psxfile01/test_extend.c,
     17        psxfile01/test_write.c, psxmount/Makefile.am, psxmount/main.c,
     18        psxmount/test.c, psxmsgq01/init.c, psxreaddir/Makefile.am,
     19        psxreaddir/main.c, psxreaddir/test.c, psxsem01/init.c,
     20        psxstat/Makefile.am, psxstat/main.c, psxstat/test.c, psxtime/main.c,
     21        psxtime/test.c, psxtimer/psxtimer.c: Modified.
     22
    1232002-07-05      Joel Sherrill <joel@OARcorp.com>
    224
  • testsuites/psxtests/include/pmacros.h

    r116845e8 rd802489  
    1313#include <time.h>
    1414#include <unistd.h>
     15
     16#include <buffer_test_io.h>
    1517
    1618/*
     
    6870#define print_current_time(s1, s2) \
    6971  do { \
    70     char _buffer[32]; \
     72    char _time_buffer[32]; \
    7173    int  _status; \
    7274    struct timespec _tv; \
     
    7577    assert( !_status ); \
    7678    \
    77     (void) ctime_r( &_tv.tv_sec, _buffer ); \
    78     _buffer[ strlen( _buffer ) - 1 ] = 0; \
    79     printf( "%s%s%s\n", s1, _buffer, s2 ); \
     79    (void) ctime_r( &_tv.tv_sec, _time_buffer ); \
     80    _time_buffer[ strlen( _time_buffer ) - 1 ] = 0; \
     81    printf( "%s%s%s\n", s1, _time_buffer, s2 ); \
    8082    fflush(stdout); \
    8183  } while ( 0 )
  • testsuites/psxtests/psx01/task.c

    r116845e8 rd802489  
    8888
    8989  puts( "*** END OF POSIX TEST 1 ***" );
    90   exit( 0 );
     90  rtems_test_exit( 0 );
    9191
    9292  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx02/init.c

    r116845e8 rd802489  
    140140
    141141  puts( "*** END OF POSIX TEST 2 ***" );
    142   exit( 0 );
     142  rtems_test_exit( 0 );
    143143
    144144  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx02/task.c

    r116845e8 rd802489  
    3939  }
    4040  puts( "*** END OF POSIX TEST 2 ***" );
    41   exit( 0 );
     41  rtems_test_exit( 0 );
    4242
    4343  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx03/init.c

    r116845e8 rd802489  
    198198
    199199  puts( "*** END OF POSIX TEST 3 ***" );
    200   exit( 0 );
     200  rtems_test_exit( 0 );
    201201
    202202  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx04/init.c

    r116845e8 rd802489  
    552552
    553553  puts( "*** END OF POSIX TEST 4 ***" );
    554   exit( 0 );
     554  rtems_test_exit( 0 );
    555555
    556556  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx05/init.c

    r116845e8 rd802489  
    578578
    579579  puts( "*** END OF POSIX TEST 5 ***" );
    580   exit( 0 );
     580  rtems_test_exit( 0 );
    581581
    582582  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx06/init.c

    r116845e8 rd802489  
    115115
    116116  puts( "*** END OF POSIX TEST 6 ***" );
    117   exit( 0 );
     117  rtems_test_exit( 0 );
    118118
    119119  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx07/init.c

    r116845e8 rd802489  
    488488
    489489  puts( "*** END OF POSIX TEST 7 ***" );
    490   exit( 0 );
     490  rtems_test_exit( 0 );
    491491
    492492  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx08/task3.c

    r116845e8 rd802489  
    4646
    4747  puts( "*** END OF POSIX TEST 8 ***" );
    48   exit( 0 );
     48  rtems_test_exit( 0 );
    4949
    5050  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx09/init.c

    r116845e8 rd802489  
    220220
    221221  puts( "*** END OF POSIX TEST 9 ***" );
    222   exit( 0 );
     222  rtems_test_exit( 0 );
    223223
    224224  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx10/init.c

    r116845e8 rd802489  
    306306
    307307  puts( "*** END OF POSIX TEST 10 ***" );
    308   exit( 0 );
     308  rtems_test_exit( 0 );
    309309
    310310  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx11/init.c

    r116845e8 rd802489  
    102102
    103103  puts( "*** END OF POSIX TEST 11 ***" );
    104   exit( 0 );
     104  rtems_test_exit( 0 );
    105105
    106106  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx12/init.c

    r116845e8 rd802489  
    134134
    135135  puts( "*** END OF POSIX TEST 12 ***" );
    136   exit( 0 );
     136  rtems_test_exit( 0 );
    137137
    138138  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx13/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • testsuites/psxtests/psx13/main.c

    r116845e8 rd802489  
    1515
    1616#include <bsp.h>
     17#include <pmacros.h>
    1718
    1819void test_main( void );
     
    2324{
    2425  test_main();
    25   exit( 0 );
     26  rtems_test_exit( 0 );
    2627}
    2728
  • testsuites/psxtests/psx13/test.c

    r116845e8 rd802489  
    3434
    3535#include <stdio.h>
     36
     37#include <pmacros.h>
    3638
    3739/*-------------------------------------------------------------------
     
    670672
    671673  printf( "\n\n*** END OF TEST PSX13 ***" );
    672   exit(0);
     674  rtems_test_exit(0);
    673675}
    674676
  • testsuites/psxtests/psxcancel/init.c

    r116845e8 rd802489  
    3030
    3131#include <bsp.h> /* for device driver prototypes */
     32#include <pmacros.h>
    3233
    3334rtems_task Init( rtems_task_argument argument);
     
    9394    if (task_ret) {
    9495      perror("pthread_create: countTask");
    95       exit(EXIT_FAILURE);
     96      rtems_test_exit(EXIT_FAILURE);
    9697    }
    9798    /* sleep for 5 seconds, then cancel it */
     
    107108    if (task_ret) {
    108109      perror("pthread_create: countTask");
    109       exit(EXIT_FAILURE);
     110      rtems_test_exit(EXIT_FAILURE);
    110111    }
    111112    /* sleep for 5 seconds, then cancel it */
     
    121122  return 0;
    122123#else
    123   exit(EXIT_SUCCESS);
     124  rtems_test_exit(EXIT_SUCCESS);
    124125#endif
    125126}
  • testsuites/psxtests/psxchroot01/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • testsuites/psxtests/psxchroot01/main.c

    r116845e8 rd802489  
    66
    77#include <bsp.h>
     8#include <pmacros.h>
    89
    910void test_main( void );
     
    1415{
    1516  test_main();
    16   exit( 0 );
     17  rtems_test_exit( 0 );
    1718}
    1819
  • testsuites/psxtests/psxchroot01/test.c

    r116845e8 rd802489  
    2929#include <errno.h>
    3030#include <rtems/libio.h>
     31#include <pmacros.h>
    3132
    3233void touch( char *file )
     
    118119
    119120  printf( "*** END OF CHROOT01 TEST ***\n" );
    120   exit(0);
     121  rtems_test_exit(0);
    121122}
    122123
  • testsuites/psxtests/psxfile01/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • testsuites/psxtests/psxfile01/main.c

    r116845e8 rd802489  
    1515
    1616#include <bsp.h>
     17#include <pmacros.h>
    1718
    1819void test_main( void );
     
    2324{
    2425  test_main();
    25   exit( 0 );
     26  rtems_test_exit( 0 );
    2627}
    2728
  • testsuites/psxtests/psxfile01/test.c

    r116845e8 rd802489  
    504504
    505505  printf( "*** END OF FILE TEST 1 ***\n" );
    506   exit( 0 );
     506  rtems_test_exit( 0 );
    507507}
    508508
  • testsuites/psxtests/psxfile01/test_cat.c

    r116845e8 rd802489  
    1717
    1818#include <assert.h>
     19
     20#include <pmacros.h>
    1921
    2022/*
     
    4547  if ( fd == -1 ) {
    4648    printf( "test_cat: open( %s ) failed : %s\n", file, strerror( errno ) );
    47     exit( 0 );
     49    rtems_test_exit( 0 );
    4850  }
    4951
  • testsuites/psxtests/psxfile01/test_extend.c

    r116845e8 rd802489  
    2222#include <assert.h>
    2323
     24#include <pmacros.h>
     25
    2426/*
    2527 *  test_extend routine
     
    3840  if ( fd == -1 ) {
    3941    printf( "test_extend: open( %s ) failed : %s\n", file, strerror( errno ) );
    40     exit( 0 );
     42    rtems_test_exit( 0 );
    4143  }
    4244
     
    4749  if ( status == -1 ) {
    4850    printf( "test_extend: write( %s ) failed : %s\n", file, strerror( errno ) );
    49     exit( 0 );
     51    rtems_test_exit( 0 );
    5052  }
    5153
     
    5355    printf( "test_extend: write( %s ) only wrote %d of %d bytes\n",
    5456            file, status, 1 );
    55     exit( 0 );
     57    rtems_test_exit( 0 );
    5658  }
    5759
  • testsuites/psxtests/psxfile01/test_write.c

    r116845e8 rd802489  
    1616
    1717#include <assert.h>
     18
     19#include <pmacros.h>
    1820
    1921/*
     
    3739  if ( fd == -1 ) {
    3840    printf( "test_write: open( %s ) failed : %s\n", file, strerror( errno ) );
    39     exit( 0 );
     41    rtems_test_exit( 0 );
    4042  }
    4143
     
    4648  if ( status == -1 ) {
    4749    printf( "test_write: write( %s ) failed : %s\n", file, strerror( errno ) );
    48     exit( 0 );
     50    rtems_test_exit( 0 );
    4951  }
    5052
     
    5254    printf( "test_write: write( %s ) only wrote %d of %d bytes\n",
    5355            file, status, length );
    54     exit( 0 );
     56    rtems_test_exit( 0 );
    5557  }
    5658
  • testsuites/psxtests/psxmount/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • testsuites/psxtests/psxmount/main.c

    r116845e8 rd802489  
    88
    99#include <bsp.h>
     10#include <pmacros.h>
    1011
    1112void test_main( void );
     
    1617{
    1718  test_main();
    18   exit( 0 );
     19  rtems_test_exit( 0 );
    1920}
    2021
  • testsuites/psxtests/psxmount/test.c

    r116845e8 rd802489  
    3232#include <rtems/libio.h>
    3333#include <imfs.h>
     34#include <pmacros.h>
    3435
    3536extern rtems_filesystem_location_info_t rtems_filesystem_current;
     
    442443
    443444  printf( "\n\n*** END OF MOUNT/UNMOUNT TEST ***\n" );
    444   exit(0);
     445  rtems_test_exit(0);
    445446}
    446447
  • testsuites/psxtests/psxmsgq01/init.c

    r116845e8 rd802489  
    11581158 
    11591159  puts( "*** END OF POSIX MESSAGE QUEUE TEST ***" );
    1160   exit( 0 );
     1160  rtems_test_exit( 0 );
    11611161
    11621162  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psxreaddir/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • testsuites/psxtests/psxreaddir/main.c

    r116845e8 rd802489  
    66
    77#include <bsp.h>
     8#include <pmacros.h>
    89
    910void test_main( void );
     
    1415{
    1516  test_main();
    16   exit( 0 );
     17  rtems_test_exit( 0 );
    1718}
    1819
  • testsuites/psxtests/psxreaddir/test.c

    r116845e8 rd802489  
    4949#if defined(__rtems__)
    5050#define d_type d_reclen
     51#include <pmacros.h>
    5152#endif
    5253
     
    496497  test_across_mount();
    497498  printf( "\n\n*** END OF READDIR TEST ***\n" );
    498   exit(0);
    499 }
    500 
     499  rtems_test_exit(0);
     500}
     501
  • testsuites/psxtests/psxsem01/init.c

    r116845e8 rd802489  
    240240
    241241  puts( "*** POSIX SEMAPHORE MANAGER TEST 1 COMPLETED ***" );
    242   exit(0);
     242  rtems_test_exit(0);
    243243
    244244  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psxstat/Makefile.am

    r116845e8 rd802489  
    3030#
    3131
     32AM_CPPFLAGS += -I$(top_srcdir)/include
     33
    3234${PGM}: $(OBJS) $(LINK_FILES)
    3335        $(make-exe)
  • testsuites/psxtests/psxstat/main.c

    r116845e8 rd802489  
    1515
    1616#include <bsp.h>
     17#include <pmacros.h>
    1718
    1819void test_main( void );
     
    2324{
    2425  test_main();
    25   exit( 0 );
     26  rtems_test_exit( 0 );
    2627}
    2728
  • testsuites/psxtests/psxstat/test.c

    r116845e8 rd802489  
    2525#include <rtems/libio.h>
    2626#include <imfs.h>
     27#include <pmacros.h>
    2728
    2829#define MAXSYMLINK 5   /* There needs to be a better way of getting this. */
     
    846847 
    847848  puts( "\n\n*** END OF STAT TEST 01 ***" );
    848   exit(0);
    849 }
    850 
    851 
    852 
    853 
    854 
    855 
    856 
     849  rtems_test_exit(0);
     850}
     851
     852
     853
     854
     855
     856
     857
  • testsuites/psxtests/psxtime/main.c

    r116845e8 rd802489  
    1515
    1616#include <bsp.h>
     17#include <tmacros.h>  /* instantiate buffering code if needed */
    1718
    1819void test_main( void );
     
    2324{
    2425  test_main();
    25   exit( 0 );
     26  rtems_test_exit( 0 );
    2627}
    2728
  • testsuites/psxtests/psxtime/test.c

    r116845e8 rd802489  
    111111
    112112  puts( "\n\n*** END OF TIME OF DAY TEST 01 ***" );
    113   exit(0);
     113  rtems_test_exit(0);
    114114}
    115115
  • testsuites/psxtests/psxtimer/psxtimer.c

    r116845e8 rd802489  
    333333   sleep (20);
    334334   puts( "\n\n*** End of POSIX Timers Test ***" );
    335    exit (0);
     335   rtems_test_exit (0);
    336336 }
    337337
Note: See TracChangeset for help on using the changeset viewer.