Changeset 698c2e50 in rtems


Ignore:
Timestamp:
Mar 25, 2014, 7:06:16 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
6c0301d
Parents:
2272905
Message:

tests/psxtests: Use <rtems/test.h>

Location:
testsuites/psxtests
Files:
131 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psx01/init.c

    r2272905 r698c2e50  
    2121#include <rtems/score/todimpl.h>
    2222
     23const char rtems_test_name[] = "PSX 1";
     24
    2325void *POSIX_Init(
    2426  void *argument
     
    3133  struct utsname  uts;
    3234
    33   puts( "\n\n*** POSIX TEST 1 ***" );
     35  TEST_BEGIN();
    3436
    3537  /* print some system information */
  • testsuites/psxtests/psx01/system.h

    r2272905 r698c2e50  
    3232#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3333
     34#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     35
    3436#define CONFIGURE_MAXIMUM_POSIX_THREADS     2
    3537
  • testsuites/psxtests/psx01/task.c

    r2272905 r698c2e50  
    7272  rtems_test_assert( !status );
    7373
    74   puts( "*** END OF POSIX TEST 1 ***" );
     74  TEST_END();
    7575  rtems_test_exit( 0 );
    7676
  • testsuites/psxtests/psx02/init.c

    r2272905 r698c2e50  
    1515#include "system.h"
    1616#include <signal.h>
     17
     18const char rtems_test_name[] = "PSX 2";
    1719
    1820volatile int Signal_occurred;
     
    4547  sigset_t          pending_set;
    4648
    47   puts( "\n\n*** POSIX TEST 2 ***" );
     49  TEST_BEGIN();
    4850
    4951  /* set the time of day, and print our buffer in multiple ways */
     
    142144  /* exit this thread */
    143145
    144   puts( "*** END OF POSIX TEST 2 ***" );
     146  TEST_END();
    145147  rtems_test_exit( 0 );
    146148
  • testsuites/psxtests/psx02/system.h

    r2272905 r698c2e50  
    3030#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3131
     32#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     33
    3234#define CONFIGURE_MAXIMUM_POSIX_THREADS     2
    3335
  • testsuites/psxtests/psx02/task.c

    r2272905 r698c2e50  
    4040    rtems_test_assert( !seconds );
    4141  }
    42   puts( "*** END OF POSIX TEST 2 ***" );
     42  TEST_END();
    4343  rtems_test_exit( 0 );
    4444
  • testsuites/psxtests/psx03/init.c

    r2272905 r698c2e50  
    1616#include <signal.h>
    1717#include <errno.h>
     18
     19const char rtems_test_name[] = "PSX 3";
    1820
    1921volatile int Signal_occurred;
     
    4749  siginfo_t         siginfo;
    4850
    49   puts( "\n\n*** POSIX TEST 3 ***" );
     51  TEST_BEGIN();
    5052
    5153  /* set the time of day, and print our buffer in multiple ways */
     
    200202  /* exit this thread */
    201203
    202   puts( "*** END OF POSIX TEST 3 ***" );
     204  TEST_END();
    203205  rtems_test_exit( 0 );
    204206
  • testsuites/psxtests/psx03/system.h

    r2272905 r698c2e50  
    3333#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3434
     35#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     36
    3537#define CONFIGURE_MAXIMUM_POSIX_THREADS     3
    3638
  • testsuites/psxtests/psx04/init.c

    r2272905 r698c2e50  
    1616#include <signal.h>
    1717#include <errno.h>
     18
     19const char rtems_test_name[] = "PSX 4";
    1820
    1921volatile int Signal_occurred;
     
    7274  siginfo_t         info;
    7375
    74   puts( "\n\n*** POSIX TEST 4 ***" );
     76  TEST_BEGIN();
    7577
    7678  /* set the time of day, and print our buffer in multiple ways */
     
    580582  /* exit this thread */
    581583
    582   puts( "*** END OF POSIX TEST 4 ***" );
     584  TEST_END();
    583585  rtems_test_exit( 0 );
    584586
  • testsuites/psxtests/psx04/system.h

    r2272905 r698c2e50  
    3737#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3838
     39#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     40
    3941#define CONFIGURE_MAXIMUM_POSIX_THREADS        4
    4042#define CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS 5
  • testsuites/psxtests/psx05/init.c

    r2272905 r698c2e50  
    1919
    2020#include <rtems/score/todimpl.h>
     21
     22const char rtems_test_name[] = "PSX 5";
    2123
    2224#define MUTEX_BAD_ID 0xfffffffe
     
    130132  Mutex_bad_id = MUTEX_BAD_ID;
    131133
    132   puts( "\n\n*** POSIX TEST 5 ***" );
     134  TEST_BEGIN();
    133135
    134136  /* set the time of day, and print our buffer in multiple ways */
     
    684686  rtems_test_assert( !status );
    685687
    686   puts( "*** END OF POSIX TEST 5 ***" );
     688  TEST_END();
    687689  rtems_test_exit( 0 );
    688690
  • testsuites/psxtests/psx05/system.h

    r2272905 r698c2e50  
    3737#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3838
     39#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     40
    3941#define CONFIGURE_MAXIMUM_POSIX_THREADS  4
    4042#define CONFIGURE_MAXIMUM_POSIX_MUTEXES  2
  • testsuites/psxtests/psx06/init.c

    r2272905 r698c2e50  
    1515#include "system.h"
    1616#include <errno.h>
     17
     18const char rtems_test_name[] = "PSX 6";
    1719
    1820extern void Key_destructor( void *key_data );
     
    4143  uint32_t   *key_data;
    4244
    43   puts( "\n\n*** POSIX TEST 6 ***" );
     45  TEST_BEGIN();
    4446
    4547  /* set the time of day, and print our buffer in multiple ways */
     
    118120  printf( "Destructor invoked %d times\n", Destructor_invoked );
    119121
    120   puts( "*** END OF POSIX TEST 6 ***" );
     122  TEST_END();
    121123  rtems_test_exit( 0 );
    122124
  • testsuites/psxtests/psx06/system.h

    r2272905 r698c2e50  
    3333#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3434
     35#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     36
    3537#define CONFIGURE_MAXIMUM_POSIX_THREADS  3
    3638#define CONFIGURE_MAXIMUM_POSIX_KEYS     1
  • testsuites/psxtests/psx07/init.c

    r2272905 r698c2e50  
    2020#include "tmacros.h"
    2121#include "pritime.h"
     22
     23const char rtems_test_name[] = "PSX 7";
    2224
    2325void print_schedparam(
     
    6466  pthread_attr_t      destroyed_attr;
    6567
    66   puts( "\n\n*** POSIX TEST 7 ***" );
     68  TEST_BEGIN();
    6769
    6870  /* set the time of day, and print our buffer in multiple ways */
     
    640642  posix_service_failed( status, " pthread_join");
    641643
    642   puts( "*** END OF POSIX TEST 7 ***" );
     644  TEST_END();
    643645  rtems_test_exit( 0 );
    644646
  • testsuites/psxtests/psx07/system.h

    r2272905 r698c2e50  
    3434#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3535
     36#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     37
    3638#define CONFIGURE_MAXIMUM_POSIX_THREADS     3
    3739
  • testsuites/psxtests/psx08/init.c

    r2272905 r698c2e50  
    1616#include <errno.h>
    1717
     18const char rtems_test_name[] = "PSX 8";
     19
    1820void *POSIX_Init(
    1921  void *argument
     
    2325  void  *return_pointer;
    2426
    25   puts( "\n\n*** POSIX TEST 8 ***" );
     27  TEST_BEGIN();
    2628
    2729  /* set the time of day, and print our buffer in multiple ways */
  • testsuites/psxtests/psx08/system.h

    r2272905 r698c2e50  
    3737#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3838
     39#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     40
    3941#define CONFIGURE_MAXIMUM_POSIX_THREADS     4
    4042
  • testsuites/psxtests/psx08/task3.c

    r2272905 r698c2e50  
    4747    );
    4848
    49   puts( "*** END OF POSIX TEST 8 ***" );
     49  TEST_END();
    5050  rtems_test_exit( 0 );
    5151
  • testsuites/psxtests/psx09/init.c

    r2272905 r698c2e50  
    1818#include <errno.h>
    1919#include "pritime.h"
     20
     21const char rtems_test_name[] = "PSX 9";
    2022
    2123void print_schedparam(
     
    6264  time_t               now;
    6365
    64   puts( "\n\n*** POSIX TEST 9 ***" );
     66  TEST_BEGIN();
    6567
    6668  /* set the time of day, and print our buffer in multiple ways */
     
    226228  print_current_time( "Init: ", buffer );
    227229
    228   puts( "*** END OF POSIX TEST 9 ***" );
     230  TEST_END();
    229231  rtems_test_exit( 0 );
    230232
  • testsuites/psxtests/psx09/system.h

    r2272905 r698c2e50  
    3333#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3434
     35#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     36
    3537#define CONFIGURE_MAXIMUM_POSIX_THREADS   1
    3638#define CONFIGURE_MAXIMUM_POSIX_KEYS     10
  • testsuites/psxtests/psx10/init.c

    r2272905 r698c2e50  
    1616#include <sched.h>
    1717
     18const char rtems_test_name[] = "PSX 10";
    1819
    1920void *POSIX_Init(
     
    2829  struct timespec     timeout;
    2930
    30   puts( "\n\n*** POSIX TEST 10 ***" );
     31  TEST_BEGIN();
    3132
    3233  puts( "Init: pthread_condattr_init" );
     
    312313  sleep( 1 );
    313314
    314   puts( "*** END OF POSIX TEST 10 ***" );
     315  TEST_END();
    315316  rtems_test_exit( 0 );
    316317
  • testsuites/psxtests/psx10/system.h

    r2272905 r698c2e50  
    3939#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    4040
     41#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     42
    4143#define CONFIGURE_MAXIMUM_POSIX_THREADS              4
    4244#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES  1
  • testsuites/psxtests/psx11/init.c

    r2272905 r698c2e50  
    1818#include <errno.h>
    1919
     20const char rtems_test_name[] = "PSX 11";
     21
    2022void *POSIX_Init(
    2123  void *argument
     
    3032  int                  priority_4;
    3133
    32   puts( "\n\n*** POSIX TEST 11 ***" );
     34  TEST_BEGIN();
    3335
    3436  /* set the time of day, and print our buffer in multiple ways */
     
    127129  rtems_test_assert( !status );
    128130
    129   puts( "*** END OF POSIX TEST 11 ***" );
     131  TEST_END();
    130132  rtems_test_exit( 0 );
    131133
  • testsuites/psxtests/psx11/system.h

    r2272905 r698c2e50  
    2929#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3030
     31#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     32
    3133#define CONFIGURE_MAXIMUM_POSIX_THREADS     4
    3234
  • testsuites/psxtests/psx12/init.c

    r2272905 r698c2e50  
    1818#include <errno.h>
    1919#include "pritime.h"
     20
     21const char rtems_test_name[] = "PSX 12";
    2022
    2123void print_schedparam(
     
    5254  struct sched_param  schedparam;
    5355
    54   puts( "\n\n*** POSIX TEST 12 ***" );
     56  TEST_BEGIN();
    5557
    5658  /* set the time of day, and print our buffer in multiple ways */
     
    144146    /* switch to Task_1 */
    145147
    146   puts( "*** END OF POSIX TEST 12 ***" );
     148  TEST_END();
    147149  rtems_test_exit( 0 );
    148150
  • testsuites/psxtests/psx12/system.h

    r2272905 r698c2e50  
    2929#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3030
     31#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     32
    3133#define CONFIGURE_MAXIMUM_POSIX_THREADS   2
    3234#define CONFIGURE_MAXIMUM_POSIX_KEYS     10
  • testsuites/psxtests/psx13/main.c

    r2272905 r698c2e50  
    4242#define CONFIGURE_MAXIMUM_TASKS 1
    4343
     44#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     45
    4446#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4547
  • testsuites/psxtests/psx13/test.c

    r2272905 r698c2e50  
    3939
    4040#include <pmacros.h>
     41
     42const char rtems_test_name[] = "PSX 13";
    4143
    4244int InitFiles(void);
     
    648650#endif
    649651{
    650   puts( "*** POSIX TEST 13 ***" );
     652  TEST_BEGIN();
    651653
    652654  if (InitFiles() == TRUE) {
     
    717719  }
    718720  else
    719     printf ("\n\nError opening files for write!!!!\n");
    720 
    721   printf( "\n\n*** END OF TEST PSX13 ***\n" );
     721    TEST_BEGIN();
     722
     723  TEST_END();
    722724  rtems_test_exit(0);
    723725}
  • testsuites/psxtests/psx14/init.c

    r2272905 r698c2e50  
    1818#include "tmacros.h"
    1919
     20const char rtems_test_name[] = "PSX 14";
     21
    2022void *POSIX_Init(
    2123  void *argument
     
    2628  rtems_status_code  status;
    2729
    28   puts( "\n\n*** POSIX TEST 14 ***" );
     30  TEST_BEGIN();
    2931
    3032  ptr = rtems_object_get_name( pthread_self(), 128, name );
     
    6163
    6264
    63   puts( "*** END OF POSIX TEST 14 ***" );
     65  TEST_END();
    6466  rtems_test_exit( 0 );
    6567
  • testsuites/psxtests/psx14/system.h

    r2272905 r698c2e50  
    2828#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    2929
     30#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     31
    3032#define CONFIGURE_MAXIMUM_POSIX_THREADS     2
    3133
  • testsuites/psxtests/psx15/init.c

    r2272905 r698c2e50  
    2323
    2424#include "tmacros.h"
     25
     26const char rtems_test_name[] = "PSX 15";
    2527
    2628/* forward declarations to avoid warnings */
     
    6567  rtems_status_code sc = RTEMS_SUCCESSFUL;
    6668
    67   puts("\n\n*** POSIX TEST 15 ***");
     69  TEST_BEGIN();
    6870
    6971  sc = rtems_task_create(
     
    9395  rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    9496
    95   puts("*** END OF POSIX TEST 15 ***");
     97  TEST_END();
    9698
    9799  rtems_test_exit(0);
     
    107109#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1
    108110
     111#define CONFIGURE_INITIAL_EXTENSIONS \
     112  { .thread_delete = thread_delete_hook }, \
     113  RTEMS_TEST_INITIAL_EXTENSION
     114
    109115#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    110116
     
    112118#define CONFIGURE_INIT_TASK_PRIORITY 4
    113119
    114 #define CONFIGURE_INITIAL_EXTENSIONS { .thread_delete = thread_delete_hook }
    115 
    116120#include <rtems/confdefs.h>
  • testsuites/psxtests/psx16/init.c

    r2272905 r698c2e50  
    1515#include "test_support.h"
    1616#include <pthread.h>
     17
     18const char rtems_test_name[] = "PSX 16";
    1719
    1820/* forward declarations to avoid warnings */
     
    4143  void           *join_return;
    4244
    43   puts( "\n\n*** POSIX TEST PSX16 ***" );
     45  TEST_BEGIN();
    4446
    4547  Index = 5;
     
    6466  puts( "Successfully joined with TestThread" );
    6567
    66   puts( "*** END OF POSIX TEST PSX16 ***" );
     68  TEST_END();
    6769
    6870  rtems_test_exit(0);
     
    7476#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    7577
     78#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     79
    7680#define CONFIGURE_MAXIMUM_POSIX_THREADS        2
    7781
  • testsuites/psxtests/psxaio01/init.c

    r2272905 r698c2e50  
    2323#include <fcntl.h>
    2424
     25const char rtems_test_name[] = "PSXAIO 1";
     26
    2527#define BUFSIZE 512
    2628#define WRONG_FD 404
     
    6870  rtems_test_assert ( fd != -1);
    6971
    70   puts ("\n\n*** POSIX AIO TEST 01 ***");
     72  TEST_BEGIN();
    7173
    7274  puts (" Init: EBADF TESTS ");
     
    192194  free_aiocb (aiocbp);
    193195
    194   puts ("*** END OF POSIX AIO TEST 01 ***");
     196  TEST_END();
    195197
    196198  close (fd);
  • testsuites/psxtests/psxaio01/system.h

    r2272905 r698c2e50  
    2727#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
    2828
     29#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     30
    2931#define CONFIGURE_MAXIMUM_POSIX_THREADS        10
    3032#define CONFIGURE_MAXIMUM_POSIX_MUTEXES        10
  • testsuites/psxtests/psxaio02/init.c

    r2272905 r698c2e50  
    2323#include <fcntl.h>
    2424#include <rtems/chain.h>
     25
     26const char rtems_test_name[] = "PSXAIO 2";
    2527
    2628/* forward declarations to avoid warnings */
     
    7476  rtems_test_assert (!status);
    7577 
    76   puts ("\n\n*** POSIX AIO TEST 02 ***");
     78  TEST_BEGIN();
    7779 
    7880  puts ("Init: Open files");
     
    172174  rtems_test_assert (status == AIO_ALLDONE);
    173175
    174   puts ("*** END OF POSIX AIO TEST 02 ***");
     176  TEST_END();
    175177
    176178  for (i = 0; i < MAX; i++)
  • testsuites/psxtests/psxaio02/system.h

    r2272905 r698c2e50  
    2727#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
    2828
     29#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     30
    2931#define CONFIGURE_MAXIMUM_POSIX_THREADS        10
    3032#define CONFIGURE_MAXIMUM_POSIX_MUTEXES        10
  • testsuites/psxtests/psxaio03/init.c

    r2272905 r698c2e50  
    2424#include <fcntl.h>
    2525#include <rtems/chain.h>
     26
     27const char rtems_test_name[] = "PSXAIO 3";
    2628
    2729/* forward declarations to avoid warnings */
     
    7577  rtems_test_assert (!status);
    7678
    77   puts ("\n\n*** POSIX AIO TEST 03 ***");
     79  TEST_BEGIN();
    7880
    7981  puts (" Init: Open files ");
     
    128130  sleep (5);
    129131 
    130   puts ("*** END OF POSIX AIO TEST 03 ***");
     132  TEST_END();
    131133 
    132134  for (i = 0; i < MAX; i++)
  • testsuites/psxtests/psxaio03/system.h

    r2272905 r698c2e50  
    2828#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
    2929
     30#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     31
    3032#define CONFIGURE_MAXIMUM_POSIX_THREADS        30
    3133#define CONFIGURE_MAXIMUM_POSIX_MUTEXES        30
  • testsuites/psxtests/psxalarm01/init.c

    r2272905 r698c2e50  
    1616#include <signal.h>
    1717#include <errno.h>
     18
     19const char rtems_test_name[] = "PSXALARM 1";
    1820
    1921/* forward declarations to avoid warnings */
     
    7173  sigset_t          mask;
    7274
    73   puts( "\n\n*** POSIX ALARM TEST 01 ***" );
     75  TEST_BEGIN();
    7476
    7577  /* install a signal handler for SIGALRM and unblock it */
     
    108110  rtems_test_assert( remaining == 0 );
    109111
    110   puts( "*** END OF POSIX ALARM TEST 01***" );
     112  TEST_END();
    111113  rtems_test_exit( 0 );
    112114
     
    116118#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    117119#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     120
     121#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    118122
    119123#define CONFIGURE_MAXIMUM_POSIX_THREADS        1
  • testsuites/psxtests/psxautoinit01/init.c

    r2272905 r698c2e50  
    1616#include <errno.h>
    1717
     18const char rtems_test_name[] = "PSXAUTOINIT 1";
     19
    1820/* forward declarations to avoid warnings */
    1921void *POSIX_Init(void *argument);
     
    2830  int             prioceiling;
    2931
    30   puts( "\n\n*** POSIX TEST -- AUTOMATIC INITIALIZAITON 01 ***" );
     32  TEST_BEGIN();
    3133
    3234  /* path using mutex get with interrupts disabled */
     
    6466  fatal_posix_service_status( sc, 0, "mutex destroy OK" );
    6567
    66   puts( "*** END OF POSIX TEST AUTOMATIC INITIALIZATION 01 ***" );
     68  TEST_END();
    6769  rtems_test_exit( 0 );
    6870
     
    7375#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
    7476
     77#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     78
    7579#define CONFIGURE_MAXIMUM_POSIX_THREADS 1
    7680#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 1
  • testsuites/psxtests/psxautoinit02/init.c

    r2272905 r698c2e50  
    1616#include <errno.h>
    1717
     18const char rtems_test_name[] = "PSXAUTOINIT 2";
     19
    1820/* forward declarations to avoid warnings */
    1921void *POSIX_Init(void *argument);
     
    2729  pthread_cond_t cond2;
    2830
    29   puts( "\n\n*** POSIX TEST -- AUTOMATIC INITIALIZAITON 02 ***" );
     31  TEST_BEGIN();
    3032
    3133  cond1 = PTHREAD_COND_INITIALIZER;
     
    4345  fatal_posix_service_status( sc, 0, "cond destroy OK" );
    4446
    45   puts( "*** END OF POSIX TEST AUTOMATIC INITIALIZATION 02 ***" );
     47  TEST_END();
    4648  rtems_test_exit( 0 );
    4749
     
    5254#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
    5355
     56#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     57
    5458#define CONFIGURE_MAXIMUM_POSIX_THREADS 1
    5559#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 1
  • testsuites/psxtests/psxbarrier01/main.c

    r2272905 r698c2e50  
    1414#endif
    1515
     16#include <rtems/test.h>
    1617#include <bsp.h>
    1718#include <pmacros.h>
     
    3637
    3738#define CONFIGURE_MAXIMUM_TASKS 1
     39#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     40
    3841#define CONFIGURE_MAXIMUM_POSIX_THREADS 10
    3942
    4043#define CONFIGURE_MAXIMUM_POSIX_BARRIERS 1
     44
     45#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    4146
    4247#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
  • testsuites/psxtests/psxbarrier01/test.c

    r2272905 r698c2e50  
    2222
    2323#include "tmacros.h"
     24
     25const char rtems_test_name[] = "PSXBARRIER 1";
    2426
    2527#define NUMBER_THREADS 2
     
    6365  int                   i;
    6466
    65   puts( "\n\n*** POSIX BARRIER TEST 01 ***" );
     67  TEST_BEGIN();
    6668
    6769  /*************** NULL POINTER CHECKS *****************/
     
    236238
    237239  /*************** END OF TEST *****************/
    238   puts( "*** END OF POSIX BARRIER TEST 01 ***" );
     240  TEST_END();
    239241  exit(0);
    240242}
  • testsuites/psxtests/psxcancel/init.c

    r2272905 r698c2e50  
    2222  #include <pmacros.h>
    2323#endif
     24
     25const char rtems_test_name[] = "PSXCANCEL";
    2426
    2527/* forward declarations to avoid warnings */
     
    8183  int       old;
    8284
    83   puts( "\n\n*** POSIX CANCEL TEST ***" );
     85  TEST_BEGIN();
    8486
    8587  /* generate some error conditions */
     
    131133
    132134
    133   puts( "*** END OF POSIX CANCEL TEST ***" );
     135  TEST_END();
    134136
    135137  #if defined(__rtems__)
     
    147149#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    148150
     151#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     152
    149153#define CONFIGURE_MAXIMUM_POSIX_THREADS 2
    150154#define CONFIGURE_POSIX_INIT_THREAD_TABLE
  • testsuites/psxtests/psxcancel01/init.c

    r2272905 r698c2e50  
    1414#include <pmacros.h>
    1515#include <errno.h>
     16
     17const char rtems_test_name[] = "PSXCANCEL 1";
    1618
    1719/* forward declarations to avoid warnings */
     
    110112  rtems_status_code status;
    111113
    112   puts( "\n\n*** POSIX TEST CANCEL 01 ***" );
     114  TEST_BEGIN();
    113115
    114116  status = rtems_timer_create(
     
    122124  doit( SetType_duringISR_TSR, "pthread_setcanceltype" );
    123125
    124   puts( "*** END OF POSIX TEST CANCEL 01 ***" );
     126  TEST_END();
    125127  rtems_test_exit(0);
    126128  return NULL; /* just so the compiler thinks we returned something */
     
    134136#define CONFIGURE_MAXIMUM_TIMERS        1
    135137
     138#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     139
    136140#define CONFIGURE_MAXIMUM_POSIX_THREADS        1
    137141#define CONFIGURE_POSIX_INIT_THREAD_TABLE
  • testsuites/psxtests/psxchroot01/main.c

    r2272905 r698c2e50  
    3535#define CONFIGURE_MAXIMUM_TASKS 1
    3636
     37#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     38
    3739#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3840
  • testsuites/psxtests/psxchroot01/test.c

    r2272905 r698c2e50  
    2626#include <pmacros.h>
    2727#include <rtems/libcsupport.h>
     28
     29const char rtems_test_name[] = "PSXCHROOT 1";
    2830
    2931/* forward declarations to avoid warnings */
     
    8890*/
    8991
    90   printf( "\n\n*** CHROOT01 TEST ***\n" );
     92  TEST_BEGIN();
    9193
    9294  status = mkdir( "/one", 0777);
     
    140142  printf( "%s on /two/two.test\n", (!status) ? "SUCCESS" : "FAILURE" );
    141143
    142   printf( "*** END OF CHROOT01 TEST ***\n" );
     144  TEST_END();
    143145  rtems_test_exit(0);
    144146}
  • testsuites/psxtests/psxclassic01/init.c

    r2272905 r698c2e50  
    2525#include <unistd.h>
    2626#include <errno.h>
     27
     28const char rtems_test_name[] = "PSXCLASSIC 1";
    2729
    2830int       Caught_signo = -1;
     
    108110  void             *retval;
    109111
    110   puts( "*** START OF CLASSIC API TEST OF POSIX 01 ***" );
     112  TEST_BEGIN();
    111113
    112114  sc = rtems_task_create(
     
    142144  rtems_test_assert( status == 0 );
    143145
    144   puts( "*** END OF CLASSIC API TEST OF POSIX 01 ***" );
     146  TEST_END();
    145147  exit(0);
    146148}
     
    156158
    157159#define CONFIGURE_INIT_TASK_PRIORITY 4
     160#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     161
    158162#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    159163
  • testsuites/psxtests/psxcleanup/psxcleanup.c

    r2272905 r698c2e50  
    2424#include "tmacros.h"
    2525
     26const char rtems_test_name[] = "PSXCLEANUP";
     27
    2628#define NUMBER_THREADS 2
    2729pthread_t ThreadIds[NUMBER_THREADS];
     
    231233  lock_t         l;
    232234
    233   puts( "\n\n*** POSIX CLEANUP TEST ***" );
     235  TEST_BEGIN();
    234236
    235237  /*************** INITIALIZE  ***************/
     
    252254
    253255  /*************** END OF TEST *****************/
    254   puts( "*** END OF POSIX CLEANUP TEST ***\n" );
     256  TEST_END();
    255257  rtems_test_exit(0);
    256258}
  • testsuites/psxtests/psxcleanup/system.h

    r2272905 r698c2e50  
    4040#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    4141
     42#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     43
    4244#define CONFIGURE_MAXIMUM_POSIX_THREADS             4
    4345#define CONFIGURE_MAXIMUM_POSIX_TIMERS              4
  • testsuites/psxtests/psxcleanup01/init.c

    r2272905 r698c2e50  
    1616#include <pthread.h>  /* thread facilities */
    1717
     18const char rtems_test_name[] = "PSXCLEANUP 1";
     19
    1820/* forward declarations to avoid warnings */
    1921void *POSIX_Init(void *argument);
     
    3032)
    3133{
    32   puts( "\n\n*** POSIX CLEANUP TEST 01 ***" );
     34  TEST_BEGIN();
    3335
    3436  puts( "Init - pthread_cleanup_push - a routine we will not execute" );
     
    3840  pthread_cleanup_pop(0);
    3941
    40   puts( "*** END OF POSIX CLEANUP TEST 01 ***\n" );
     42  TEST_END();
    4143  rtems_test_exit(0);
    4244}
     
    5052#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    5153
     54#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     55
    5256#define CONFIGURE_MAXIMUM_POSIX_THREADS 1
    5357
  • testsuites/psxtests/psxclock/init.c

    r2272905 r698c2e50  
    1919
    2020#include <rtems/score/todimpl.h>
     21
     22const char rtems_test_name[] = "PSXCLOCK";
    2123
    2224/* forward declarations to avoid warnings */
     
    4547  struct timespec delay_request;
    4648
    47   puts( "\n\n*** POSIX CLOCK TEST ***" );
     49  TEST_BEGIN();
    4850
    4951  tm_build_time( &tm, TM_FRIDAY, TM_MAY, 24, 96, 11, 5, 0 );
     
    254256  #endif
    255257
    256   puts( "*** END OF POSIX CLOCK TEST ***" );
     258  TEST_END();
    257259  rtems_test_exit(0);
    258260}
     
    263265#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    264266
     267#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     268
    265269#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    266270#define CONFIGURE_MAXIMUM_TASKS             1
  • testsuites/psxtests/psxcond01/init.c

    r2272905 r698c2e50  
    1515#include <pthread.h>
    1616#include <errno.h>
     17
     18const char rtems_test_name[] = "PSXCOND 1";
    1719
    1820/* forward declarations to avoid warnings */
     
    5759  pthread_t  Thread;
    5860
    59   puts( "\n\n*** POSIX TEST -- CONDITION VARIABLE 01 ***" );
     61  TEST_BEGIN();
    6062
    6163  puts( "Init - pthread_mutex_init - Mutex1 - OK" );
     
    8284  fatal_posix_service_status( sc, EINVAL, "cond_wait EINVAL" );
    8385
    84   puts( "*** END OF POSIX TEST CONDITION VARIABLE 01 ***" );
     86  TEST_END();
    8587  rtems_test_exit( 0 );
    8688
     
    9092#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    9193#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     94
     95#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    9296
    9397#define CONFIGURE_MAXIMUM_POSIX_THREADS 2
  • testsuites/psxtests/psxconfig01/init.c

    r2272905 r698c2e50  
    2525#endif
    2626
     27#include <rtems/test.h>
    2728#include <tmacros.h>
    2829
     
    4041#include <rtems/libcsupport.h>
    4142
     43const char rtems_test_name[] = "PSXCONFIG 1";
     44
    4245#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 5
    4346
     
    6265#define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES 41
    6366#define CONFIGURE_MAXIMUM_POSIX_SPINLOCKS 17
     67#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     68
    6469#define CONFIGURE_MAXIMUM_POSIX_THREADS 3
    6570#define CONFIGURE_MAXIMUM_POSIX_TIMERS 47
     
    167172
    168173#define CONFIGURE_MAXIMUM_DRIVERS 2
     174
     175#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    169176
    170177#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     
    250257  int i = 0;
    251258
    252   puts("\n\n*** POSIX TEST CONFIG 01 ***");
     259  TEST_BEGIN();
    253260
    254261  memset(posix_name, 'P', sizeof(posix_name) - 1);
     
    553560  print_info();
    554561
    555   puts("*** END OF POSIX TEST CONFIG 01 ***");
     562  TEST_END();
    556563
    557564  rtems_test_exit(0);
  • testsuites/psxtests/psxeintr_join/init.c

    r2272905 r698c2e50  
    2020#include <tmacros.h>
    2121#include "test_support.h"
     22
     23const char rtems_test_name[] = "PSXEINTR_JOIN";
    2224
    2325#define SIG_SUSPEND SIGUSR1
     
    8688  int              status;
    8789
    88   puts( "*** POSIX TEST PSXEINTR_JOIN ***" );
     90  TEST_BEGIN();
    8991  status = sem_init( &GC_suspend_ack_sem, 0, 0);
    9092  rtems_test_assert( status == 0 );
     
    115117  puts( "Back from pthread_join" );
    116118
    117   puts( "*** END OF POSIX TEST PSXEINTR_JOIN ***" );
     119  TEST_END();
    118120  rtems_test_exit( 0 );
    119121
     
    126128
    127129#define CONFIGURE_POSIX_INIT_THREAD_TABLE
     130#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     131
    128132#define CONFIGURE_MAXIMUM_POSIX_THREADS 2
    129133#define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES 1
  • testsuites/psxtests/psxenosys/init.c

    r2272905 r698c2e50  
    2929#include <sched.h>
    3030
     31const char rtems_test_name[] = "PSXENOSYS";
     32
    3133#if !HAVE_DECL_MPROTECT
    3234extern int mprotect(const void *addr, size_t len, int prot);
     
    5254  int             sc;
    5355
    54   puts( "\n\n*** POSIX TEST -- ENOSYS ***" );
     56  TEST_BEGIN();
    5557
    5658  puts( "lio_listio -- ENOSYS" );
     
    145147  }
    146148
    147   puts( "*** END OF POSIX TEST ENOSYS ***" );
     149  TEST_END();
    148150  rtems_test_exit( 0 );
    149151
  • testsuites/psxtests/psxenosys/system.h

    r2272905 r698c2e50  
    2727#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    2828
     29#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     30
    2931#define CONFIGURE_MAXIMUM_POSIX_THREADS     2
    3032
  • testsuites/psxtests/psxfatal_support/init.c

    r2272905 r698c2e50  
    1515#include "system.h"
    1616
     17const char rtems_test_name[] = FATAL_ERROR_TEST_NAME;
     18
    1719static void print_test_begin_message(void)
    1820{
     
    2123  if (!done) {
    2224    done = true;
    23     printk( "\n\n\n*** TEST POSIX FATAL " FATAL_ERROR_TEST_NAME " ***\n" );
     25    rtems_test_begink();
    2426  }
    2527}
     
    9496      && error == FATAL_ERROR_EXPECTED_ERROR
    9597  ) {
    96     printk( "*** END OF TEST POSIX FATAL " FATAL_ERROR_TEST_NAME " ***\n" );
     98    rtems_test_endk();
    9799  }
    98100}
  • testsuites/psxtests/psxfatal_support/system.h

    r2272905 r698c2e50  
    5959    NULL,                    /* exitted */ \
    6060    Fatal_extension          /* fatal   */ \
    61   }
     61  }, \
     62  RTEMS_TEST_INITIAL_EXTENSION
    6263
    6364/* extra parameters may be in testcase.h */
     
    6970#define SPFATAL_TEST_CASE_EXTRA_THREADS 0
    7071#endif
     72
    7173#define CONFIGURE_MAXIMUM_POSIX_THREADS \
    7274  (SPFATAL_TEST_CASE_EXTRA_THREADS + 1)
  • testsuites/psxtests/psxfchx01/init.c

    r2272905 r698c2e50  
    2020#include <fcntl.h>
    2121
     22const char rtems_test_name[] = "PSXFCHX 1";
     23
    2224/* forward declarations to avoid warnings */
    2325rtems_task Init(rtems_task_argument ignored);
     
    3032  int fd = 0;
    3133
    32   puts( "*** TEST Posix file op tests - 01 ***" );
     34  TEST_BEGIN();
    3335
    3436  /****************************************************
     
    210212  puts( "End of fchown tests" );
    211213
    212   puts( "*** END OF TEST Posix file op tests - 01 ***" );
     214  TEST_END();
    213215  rtems_test_exit( 0 );
    214216}
     
    223225
    224226#define CONFIGURE_MAXIMUM_TASKS 1
     227#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     228
    225229#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    226230
  • testsuites/psxtests/psxfile01/main.c

    r2272905 r698c2e50  
    4040#define CONFIGURE_INIT_TASK_STACK_SIZE (2 * RTEMS_MINIMUM_STACK_SIZE)
    4141
     42#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     43
    4244#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4345
  • testsuites/psxtests/psxfile01/test.c

    r2272905 r698c2e50  
    4545
    4646#include "primode.h"
     47
     48const char rtems_test_name[] = "PSXFILE 1";
    4749
    4850/* forward declarations to avoid warnings */
     
    159161  rtems_time_of_day time;
    160162
    161   printf( "\n\n*** FILE TEST 1 ***\n" );
     163  TEST_BEGIN();
    162164
    163165  /*
     
    656658  test_case_reopen_append();
    657659
    658   printf( "*** END OF FILE TEST 1 ***\n" );
     660  TEST_END();
    659661  rtems_test_exit( 0 );
    660662}
  • testsuites/psxtests/psxfile02/init.c

    r2272905 r698c2e50  
    2929#include <tmacros.h>
    3030#include "test_support.h"
     31
     32const char rtems_test_name[] = "PSXFILE 2";
    3133
    3234/* forward declarations to avoid warnings */
     
    112114  int   fd;
    113115
    114   puts( "\n\n*** PSXFILE02 TEST  ***" );
     116  TEST_BEGIN();
    115117
    116118  /*
     
    134136  do_with_fd( 1000, "a too large file descriptor" );
    135137
    136   puts( "*** END OF PSXFILE02 TEST  ***" );
     138  TEST_END();
    137139
    138140  rtems_test_exit(0);
     
    146148#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
    147149#define CONFIGURE_MAXIMUM_TASKS 1
     150#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     151
    148152#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    149153
  • testsuites/psxtests/psxfilelock01/init.c

    r2272905 r698c2e50  
    1616#include <errno.h>
    1717
     18const char rtems_test_name[] = "PSXFILELOCK 1";
     19
    1820/* forward declarations to avoid warnings */
    1921rtems_task Init(rtems_task_argument argument);
     
    2628  int   sc;
    2729
    28   puts( "\n\n*** TEST FILE LOCK 01 ***" );
     30  TEST_BEGIN();
    2931
    3032  puts( "Open /testfile" );
     
    4648  funlockfile( fd );
    4749 
    48   puts( "*** END OF TEST FILE LOCK 01 ***" );
     50  TEST_END();
    4951
    5052  rtems_test_exit(0);
     
    5860#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
    5961#define CONFIGURE_MAXIMUM_TASKS             1
     62#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     63
    6064#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    6165
  • testsuites/psxtests/psxgetattrnp01/init.c

    r2272905 r698c2e50  
    1818#include <pthread.h>
    1919#include <rtems/posix/pthreadimpl.h>
     20
     21const char rtems_test_name[] = "PSXGETATTRNP 1";
    2022
    2123/* forward declarations to avoid warnings */
     
    8890  struct sched_param  param;
    8991
    90   puts( "\n\n*** POSIX ATTRIBUTE TEST 1 ***" );
     92  TEST_BEGIN();
    9193
    9294  /* Initialize thread id */
     
    160162#endif
    161163
    162   puts( "*** END OF POSIX ATTRIBUTE TEST 1 ***" );
     164  TEST_END();
    163165  rtems_test_exit(0);
    164166  return NULL; /* just so the compiler thinks we returned something */
     
    169171)
    170172{
    171   puts( "\n\n*** POSIX ATTRIBUTE TEST 1 ***" );
     173  TEST_BEGIN();
    172174  puts( "  pthread_getattr_np NOT supported" );
    173   puts( "*** END OF POSIX ATTRIBUTE TEST 1 ***" );
     175  TEST_END();
    174176  rtems_test_exit(0);
    175177  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psxgetrusage01/init.c

    r2272905 r698c2e50  
    2323#include "test_support.h"
    2424
     25const char rtems_test_name[] = "PSXGETRUSAGE 1";
     26
    2527/* configuration information */
    2628
     
    2931
    3032#define CONFIGURE_MAXIMUM_TASKS             1
     33#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     34
    3135#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3236
     
    4246  struct rusage usage;
    4347
    44   puts( "\n\n*** TEST GETRUSAGE 01 ***" );
     48  TEST_BEGIN();
    4549
    4650  puts( "getrusage( RUSAGE_SELF, NULL ) -- EFAULT" );
     
    7478  rtems_test_assert( usage.ru_utime.tv_usec == usage.ru_stime.tv_usec );
    7579 
    76   puts( "*** END OF TEST GETRUSAGE 01 ***" );
     80  TEST_END();
    7781
    7882  rtems_test_exit(0);
  • testsuites/psxtests/psxid01/init.c

    r2272905 r698c2e50  
    1919#include <limits.h>
    2020#include <sys/types.h>
     21
     22const char rtems_test_name[] = "PSXID 1";
    2123
    2224/* forward declarations to avoid warnings */
     
    140142)
    141143{
    142   puts( "\n\n*** TEST ID 01 ***" );
     144  TEST_BEGIN();
    143145
    144146  test_gid();
     
    153155  test_getlogin();
    154156
    155   puts( "*** END OF TEST ID 01 ***" );
     157  TEST_END();
    156158
    157159  rtems_test_exit(0);
     
    166168/* so we can write /etc/passwd and /etc/group */
    167169#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
     170#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     171
    168172#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    169173
  • testsuites/psxtests/psximfs01/init.c

    r2272905 r698c2e50  
    2121#include <errno.h>
    2222#include <rtems/libcsupport.h>
     23
     24const char rtems_test_name[] = "PSXIMFS 1";
    2325
    2426/* forward declarations to avoid warnings */
     
    224226  ssize_t n;
    225227
    226   puts( "\n\n*** TEST IMFS 01 ***" );
     228  TEST_BEGIN();
    227229
    228230  for (i=0 ; i<sizeof(Buffer) ; i++ )
     
    266268  unlink_it();
    267269
    268   puts( "*** END OF TEST IMFS 01 ***" );
     270  TEST_END();
    269271
    270272  rtems_test_exit(0);
     
    279281#define CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK 16
    280282#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
     283#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     284
    281285#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    282286
  • testsuites/psxtests/psximfs02/init.c

    r2272905 r698c2e50  
    2323#include <rtems/malloc.h>
    2424#include <rtems/libcsupport.h>
     25
     26const char rtems_test_name[] = "PSXIMFS 2";
    2527
    2628#if !HAVE_DECL_SETEUID
     
    5557  struct stat stat_buf;
    5658
    57   puts( "\n\n*** TEST IMFS 02 ***" );
     59  TEST_BEGIN();
    5860
    5961  puts( "Creating directory /dir00" );
     
    201203  rtems_test_assert( status == 0 );
    202204
    203   puts( "*** END OF TEST IMFS 02 ***" );
     205  TEST_END();
    204206  rtems_test_exit(0);
    205207}
     
    213215#define CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK   15
    214216#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
     217#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     218
    215219#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    216220
  • testsuites/psxtests/psxintrcritical01/init.c

    r2272905 r698c2e50  
    1515#include <intrcritical.h>
    1616#include <time.h>
     17
     18const char rtems_test_name[] = "PSXINTRCRITICAL 1";
    1719
    1820/* forward declarations to avoid warnings */
     
    4446  int    resets;
    4547
    46   puts( "\n\n*** TEST POSIX INTERRUPT CRITICAL SECTION " TEST_NAME " ***" );
     48  TEST_BEGIN();
    4749
    4850  puts( "Init - Trying to generate timer fire from ISR while firing" );
     
    8082  }
    8183
    82   puts( "*** END OF TEST POSIX INTERRUPT CRITICAL SECTION " TEST_NAME " ***" );
     84  TEST_END();
    8385  rtems_test_exit(0);
    8486}
     
    9395#define CONFIGURE_MAXIMUM_POSIX_TIMERS   1
    9496#define CONFIGURE_MICROSECONDS_PER_TICK  1000
     97#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     98
    9599#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    96100
  • testsuites/psxtests/psxitimer/init.c

    r2272905 r698c2e50  
    1616#include <errno.h>
    1717
     18const char rtems_test_name[] = "PSXITIMER";
     19
    1820/* forward declarations to avoid warnings */
    1921void *POSIX_Init(void *argument);
     
    2729  struct itimerval otimer;
    2830
    29   puts( "\n\n*** POSIX TEST ITIMER ***" );
     31  TEST_BEGIN();
    3032
    3133  /* test getitimer stub */
     
    7577  rtems_test_assert( status == -1 && errno == ENOSYS );
    7678
    77   puts( "*** END OF POSIX TEST ITIMER ***" );
     79  TEST_END();
    7880  rtems_test_exit(0);
    7981}
     
    8486#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    8587
     88#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     89
    8690#define CONFIGURE_MAXIMUM_POSIX_THREADS     1
    8791
  • testsuites/psxtests/psxkey01/init.c

    r2272905 r698c2e50  
    1717#include "tmacros.h"
    1818
     19const char rtems_test_name[] = "PSXKEY 1";
     20
    1921/* forward declarations to avoid warnings */
    2022rtems_task Init(rtems_task_argument argument);
     
    2931  int    status;
    3032
    31   puts( "\n\n*** POSIX KEY 01 TEST ***" );
     33  TEST_BEGIN();
    3234
    3335  /* get id of this thread */
     
    4244  fatal_directive_check_status_only( status, 0, "OK" );
    4345
    44   puts( "*** END OF POSIX KEY 01 TEST ***" );
     46  TEST_END();
    4547  rtems_test_exit( 0 );
    4648}
  • testsuites/psxtests/psxkey01/system.h

    r2272905 r698c2e50  
    2424#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
    2525
     26#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     27
    2628#define CONFIGURE_MAXIMUM_TASKS          1
    2729#define CONFIGURE_MAXIMUM_POSIX_KEYS     1
  • testsuites/psxtests/psxkey02/init.c

    r2272905 r698c2e50  
    1818#include "pmacros.h"
    1919
     20const char rtems_test_name[] = "PSXKEY 2";
     21
    2022/* forward declarations to avoid warnings */
    2123rtems_task Init(rtems_task_argument ignored);
     
    3133  void                   *greedy;
    3234
    33   puts( "\n\n*** TEST KEY 02 ***" );
     35  TEST_BEGIN();
    3436
    3537  greedy = rtems_workspace_greedy_allocate_all_except_largest( &to_alloc );
     
    7476  rtems_workspace_greedy_free( greedy );
    7577
    76   puts( "*** END OF TEST KEY 02 ***" );
     78  TEST_END();
    7779  rtems_test_exit(0);
    7880}
     
    8284#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    8385#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
     86
     87#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    8488
    8589#define CONFIGURE_MAXIMUM_TASKS          1
  • testsuites/psxtests/psxkey03/init.c

    r2272905 r698c2e50  
    1616#include "tmacros.h"
    1717#include "pmacros.h"
     18
     19const char rtems_test_name[] = "PSXKEY 3";
    1820
    1921/* forward declarations to avoid warnings */
     
    5153  struct timespec   delay_request;
    5254
    53   puts( "\n\n*** TEST KEY 03 ***" );
     55  TEST_BEGIN();
    5456
    5557  /*
     
    117119  rtems_test_assert( sc == 0 );
    118120
    119   puts( "*** END OF TEST KEY 03 ***" );
     121  TEST_END();
    120122  rtems_test_exit(0);
    121123}
     
    125127#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    126128#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     129
     130#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    127131
    128132#define CONFIGURE_MAXIMUM_TASKS          2
  • testsuites/psxtests/psxkey04/init.c

    r2272905 r698c2e50  
    1717#include "tmacros.h"
    1818#include "pmacros.h"
     19
     20const char rtems_test_name[] = "PSXKEY 4";
    1921
    2022/* forward declarations to avoid warnings */
     
    7375  struct timespec   delay_request;
    7476
    75   puts( "\n\n*** TEST KEY 04 ***" );
     77  TEST_BEGIN();
    7678
    7779  puts( "Init - pthread_key_create - OK" );
     
    116118  rtems_test_assert( sc == 0 );
    117119
    118   puts( "*** END OF TEST KEY 04 ***" );
     120  TEST_END();
    119121  rtems_test_exit(0);
    120122}
     
    124126#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    125127#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     128
     129#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    126130
    127131#define CONFIGURE_MAXIMUM_TASKS          3
  • testsuites/psxtests/psxkey05/init.c

    r2272905 r698c2e50  
    1818#include "pmacros.h"
    1919
     20const char rtems_test_name[] = "PSXKEY 5";
     21
    2022/* forward declarations to avoid warnings */
    2123rtems_task Init( rtems_task_argument ignored );
     
    2729  int Data_array[2] = {1, 2};
    2830
    29   puts( "\n\n*** TEST KEY 05 ***" );
     31  TEST_BEGIN();
    3032
    3133  puts( "Init - pthread key1 create - OK" );
     
    6971  rtems_test_assert( sc == 0 );
    7072
    71   puts( "*** END OF TEST KEY 05 ***" );
     73  TEST_END();
    7274  rtems_test_exit(0);
    7375}
     
    7779#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    7880#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
     81
     82#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    7983
    8084#define CONFIGURE_MAXIMUM_TASKS          1
  • testsuites/psxtests/psxkey06/init.c

    r2272905 r698c2e50  
    1717#include "tmacros.h"
    1818#include "pmacros.h"
     19
     20const char rtems_test_name[] = "PSXKEY 6";
    1921
    2022/* forward declarations to avoid warnings */
     
    9092  struct timespec   delay_request;
    9193
    92   puts( "\n\n*** TEST KEY 06 ***" );
     94  TEST_BEGIN();
    9395
    9496  puts( "Init - pthread key1 create - OK" );
     
    142144  rtems_test_assert( sc == 0 );
    143145
    144   puts( "*** END OF TEST KEY 06 ***" );
     146  TEST_END();
    145147  rtems_test_exit(0);
    146148}
     
    150152#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    151153#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     154
     155#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    152156
    153157#define CONFIGURE_MAXIMUM_TASKS          3
  • testsuites/psxtests/psxkey07/init.c

    r2272905 r698c2e50  
    1919#include "pmacros.h"
    2020
     21const char rtems_test_name[] = "PSXKEY 7";
     22
    2123/* forward declarations to avoid warnings */
    2224rtems_task Init(rtems_task_argument argument);
     
    6870  all_thread_created = 0;
    6971
    70   puts( "\n\n*** TEST KEY 07 ***" );
     72  TEST_BEGIN();
    7173
    7274  puts( "Init - Mutex 1 create - OK" );
     
    183185  rtems_test_assert( !sc );
    184186
    185   puts( "*** END OF TEST KEY 07 ***" );
     187  TEST_END();
    186188  rtems_test_exit(0);
    187189}
     
    191193#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    192194#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     195
     196#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    193197
    194198#define CONFIGURE_MAXIMUM_TASKS          rtems_resource_unlimited(10)
  • testsuites/psxtests/psxkey08/init.c

    r2272905 r698c2e50  
    2020#include <unistd.h>
    2121#include <errno.h>
     22
     23const char rtems_test_name[] = "PSXKEY 8";
    2224
    2325pthread_key_t Key;
     
    6365  all_thread_created = 0;
    6466
    65   puts( "\n\n*** TEST KEY 08 ***" );
     67  TEST_BEGIN();
    6668
    6769  puts( "Init - Semaphore 1 create - OK" );
     
    159161  rtems_test_assert( !sc );
    160162
    161   puts( "*** END OF TEST KEY 08***" );
     163  TEST_END();
    162164  exit(0);
    163165}
     
    175177
    176178#define CONFIGURE_INIT_TASK_PRIORITY 4
     179#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     180
    177181#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    178182
  • testsuites/psxtests/psxkey09/init.c

    r2272905 r698c2e50  
    1818#include "pmacros.h"
    1919
     20const char rtems_test_name[] = "PSXKEY 9";
    2021
    2122/* forward declarations to avoid warnings */
     
    5455  struct timespec   delay_request;
    5556
    56   puts( "\n\n*** TEST KEY 09 ***" );
     57  TEST_BEGIN();
    5758
    5859  puts( "Init - pthread key create with destructor - OK" );
     
    8788  rtems_test_assert( sc == 0 );
    8889
    89   puts( "*** END OF TEST KEY 09 ***" );
     90  TEST_END();
    9091  rtems_test_exit(0);
    9192}
     
    9596#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    9697#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     98
     99#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    97100
    98101#define CONFIGURE_MAXIMUM_TASKS          2
  • testsuites/psxtests/psxkey10/init.c

    r2272905 r698c2e50  
    1717#include "tmacros.h"
    1818#include "pmacros.h"
     19
     20const char rtems_test_name[] = "PSXKEY 10";
    1921
    2022/* forward declarations to avoid warnings */
     
    5860  struct timespec   delay_request;
    5961
    60   puts( "\n\n*** TEST KEY 10 ***" );
     62  TEST_BEGIN();
    6163
    6264  puts( "Init - pthread key create with destructor - OK" );
     
    9193  /* rtems_test_assert( sc == 0 ); */
    9294
    93   puts( "*** END OF TEST KEY 10 ***" );
     95  TEST_END();
    9496  rtems_test_exit(0);
    9597}
     
    99101#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    100102#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     103
     104#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    101105
    102106#define CONFIGURE_MAXIMUM_TASKS          2
  • testsuites/psxtests/psxmount/main.c

    r2272905 r698c2e50  
    3737#define CONFIGURE_MAXIMUM_TASKS 1
    3838
     39#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     40
    3941#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4042
  • testsuites/psxtests/psxmount/test.c

    r2272905 r698c2e50  
    2626#include <rtems/libio.h>
    2727#include <pmacros.h>
     28
     29const char rtems_test_name[] = "PSXMOUNT";
    2830
    2931/* forward declarations to avoid warnings */
     
    9193  static const char mount_point [] = "/c/y/my_mount_point";
    9294
    93   printf( "\n\n*** MOUNT/UNMOUNT TEST ***\n" );
     95  TEST_BEGIN();
    9496
    9597  /*
     
    467469  rtems_test_assert( errno == ENOENT );
    468470
    469   printf( "\n\n*** END OF MOUNT/UNMOUNT TEST ***\n" );
     471  TEST_END();
    470472  rtems_test_exit(0);
    471473}
  • testsuites/psxtests/psxmsgq01/init.c

    r2272905 r698c2e50  
    2020#include <signal.h>   /* signal facilities */
    2121#include "test_support.h"
     22
     23const char rtems_test_name[] = "PSXMSGQ 1";
    2224
    2325/* forward declarations to avoid warnings */
     
    12731275)
    12741276{
    1275   puts( "\n\n*** POSIX MESSAGE QUEUE TEST ***" );
     1277  TEST_BEGIN();
    12761278
    12771279  validate_mq_open_error_codes( );
     
    12921294  verify_mq_send();
    12931295
    1294   puts( "*** END OF POSIX MESSAGE QUEUE TEST ***" );
     1296  TEST_END();
    12951297  rtems_test_exit( 0 );
    12961298
  • testsuites/psxtests/psxmsgq01/system.h

    r2272905 r698c2e50  
    3535#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    3636
     37#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     38
    3739#define CONFIGURE_MAXIMUM_POSIX_THREADS         5
    3840#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 10
  • testsuites/psxtests/psxmsgq02/init.c

    r2272905 r698c2e50  
    2424#include "test_support.h"
    2525
     26const char rtems_test_name[] = "PSXMSGQ 2";
     27
    2628/* forward declarations to avoid warnings */
    2729void *POSIX_Init(void *argument);
     
    3638  mqd_t                  mq;
    3739
    38   puts( "\n\n*** POSIX MESSAGE QUEUE 02 TEST ***" );
     40  TEST_BEGIN();
    3941
    4042
     
    5658  fatal_posix_service_status_errno(mq, ENOMEM, "no workspace available");
    5759
    58   puts( "*** END OF POSIX MESSAGE QUEUE 02 TEST ***" );
     60  TEST_END();
    5961  rtems_test_exit( 0 );
    6062
  • testsuites/psxtests/psxmsgq02/system.h

    r2272905 r698c2e50  
    3131#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    3232
     33#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     34
    3335#define CONFIGURE_MAXIMUM_POSIX_THREADS         5
    3436#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 10
  • testsuites/psxtests/psxmsgq03/init.c

    r2272905 r698c2e50  
    2020
    2121#include "test_support.h"
     22
     23const char rtems_test_name[] = "PSXMSGQ 3";
    2224
    2325/* forward declarations to avoid warnings */
     
    5153  rtems_status_code  rc;
    5254
    53   puts( "\n\n*** POSIX MESSAGE QUEUE TEST 3 ***" );
     55  TEST_BEGIN();
    5456
    5557  attr.mq_maxmsg  = 1;
     
    107109  puts( "Init - mq_send from ISR returned correct status" );
    108110
    109   puts( "*** END OF POSIX MESSAGE QUEUE TEST 3 ***" );
     111  TEST_END();
    110112  rtems_test_exit( 0 );
    111113
  • testsuites/psxtests/psxmsgq03/system.h

    r2272905 r698c2e50  
    3131#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    3232
     33#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     34
    3335#define CONFIGURE_MAXIMUM_POSIX_THREADS        1
    3436#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 1
  • testsuites/psxtests/psxmsgq04/init.c

    r2272905 r698c2e50  
    2323#include "test_support.h"
    2424
     25const char rtems_test_name[] = "PSXMSGQ 4";
     26
    2527/* forward declarations to avoid warnings */
    2628void *POSIX_Init(void *argument);
     
    3941  const char             *name;
    4042
    41   puts( "\n\n*** POSIX MESSAGE QUEUE TEST 4 ***" );
     43  TEST_BEGIN();
    4244
    4345  attr.mq_maxmsg = 1;
     
    115117    rtems_test_assert( sc == 0 );
    116118
    117   puts( "*** END OF POSIX MESSAGE QUEUE TEST 4 ***" );
     119  TEST_END();
    118120  rtems_test_exit( 0 );
    119121
     
    132134    (2 * CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE(1, sizeof(int)))
    133135
     136#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     137
    134138#define CONFIGURE_MAXIMUM_POSIX_THREADS                   1
    135139#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES            1
  • testsuites/psxtests/psxmutexattr01/init.c

    r2272905 r698c2e50  
    1515#include <errno.h>
    1616#include <pthread.h>
     17
     18const char rtems_test_name[] = "PSXMUTEXATTR 1";
    1719
    1820/* forward declarations to avoid warnings */
     
    4648  int                 i;
    4749
    48   puts( "\n\n*** POSIX MUTEX ATTRIBUTE TEST 1 ***" );
     50  TEST_BEGIN();
    4951
    5052#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
     
    104106#endif
    105107
    106   puts( "*** END OF POSIX MUTEX ATTRIBUTE TEST 1 ***" );
     108  TEST_END();
    107109  rtems_test_exit(0);
    108110}
     
    112114#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    113115#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
     116
     117#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    114118
    115119#define CONFIGURE_MAXIMUM_POSIX_THREADS  1
  • testsuites/psxtests/psxobj01/init.c

    r2272905 r698c2e50  
    2121#include <rtems/score/objectimpl.h>
    2222
     23const char rtems_test_name[] = "PSXOBJ 1";
     24
    2325/* forward declarations to avoid warnings */
    2426rtems_task Init(rtems_task_argument ignored);
     
    3436  bool                             bc;
    3537
    36   puts( "\n\n*** POSIX OBJECT TEST 1 ***" );
     38  TEST_BEGIN();
    3739
    3840  /* very fake object class to test with */
     
    8183  rtems_test_assert( bc == false );
    8284
    83   puts( "*** END OF POSIX OBJECT TEST 1 ***" );
     85  TEST_END();
    8486  rtems_test_exit(0);
    8587}
     
    9193
    9294#define CONFIGURE_MAXIMUM_TASKS  1
     95#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     96
    9397#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    9498
  • testsuites/psxtests/psxonce01/init.c

    r2272905 r698c2e50  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "PSXONCE 1";
    1618
    1719static pthread_once_t nesting_once = PTHREAD_ONCE_INIT;
     
    3941  pthread_once_t once = PTHREAD_ONCE_INIT;
    4042
    41   puts( "\n\n*** TEST POSIX ONCE 01 ***" );
     43  TEST_BEGIN();
    4244
    4345  puts( "Init: pthread_once - EINVAL (NULL once_control)" );
     
    6567  rtems_test_assert( !status );
    6668
    67   puts( "*** END OF TEST POSIX ONCE 01 ***" );
     69  TEST_END();
    6870  rtems_test_exit( 0 );
    6971}
  • testsuites/psxtests/psxpasswd01/init.c

    r2272905 r698c2e50  
    1717#include <pwd.h>
    1818#include <grp.h>
     19
     20const char rtems_test_name[] = "PSXPASSWD 1";
    1921
    2022/* forward declarations to avoid warnings */
     
    6870  struct group  *gr;
    6971
    70   puts( "*** PASSWORD/GROUP TEST - 01 ***" );
     72  TEST_BEGIN();
    7173
    7274  /* getpwent */
     
    196198  endgrent();
    197199
    198   puts( "*** END OF PASSWORD/GROUP TEST - 01 ***" );
     200  TEST_END();
    199201  rtems_test_exit( 0 );
    200202}
     
    209211
    210212#define CONFIGURE_MAXIMUM_TASKS 1
     213#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     214
    211215#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    212216
  • testsuites/psxtests/psxpasswd02/init.c

    r2272905 r698c2e50  
    2121#include <errno.h>
    2222#include <limits.h>
     23
     24const char rtems_test_name[] = "PSXPASSWD 2";
    2325
    2426/* forward declarations to avoid warnings */
     
    7779  FILE *fp = NULL;
    7880
    79   puts( "*** PASSWORD/GROUP TEST - 02 ***" );
     81  TEST_BEGIN();
    8082
    8183  puts( "Init - Creating /etc" );
     
    212214  rtems_test_assert( errno == EINVAL );
    213215 
    214   puts( "*** END OF PASSWORD/GROUP TEST - 02 ***" );
     216  TEST_END();
    215217  rtems_test_exit( 0 );
    216218}
     
    225227
    226228#define CONFIGURE_MAXIMUM_TASKS 1
     229#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     230
    227231#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    228232
  • testsuites/psxtests/psxpipe01/init.c

    r2272905 r698c2e50  
    2222#include <rtems/malloc.h>
    2323
     24const char rtems_test_name[] = "PSXPIPE 1";
     25
    2426/* forward declarations to avoid warnings */
    2527rtems_task Init(rtems_task_argument ignored);
     
    3436  void *opaque = NULL;
    3537
    36   puts( "*** TEST POSIX PIPE CREATION - 01 ***" );
     38  TEST_BEGIN();
    3739
    3840  puts( "Init - attempt to create pipe -- expect EFAULT" );
     
    9294  rtems_test_assert( status == 0 );
    9395
    94   puts( "*** END OF TEST POSIX PIPE CREATION - 01 ***" );
     96  TEST_END();
    9597  rtems_test_exit( 0 );
    9698}
     
    105107
    106108#define CONFIGURE_MAXIMUM_TASKS 1
     109#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     110
    107111#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    108112
  • testsuites/psxtests/psxrdwrv/main.c

    r2272905 r698c2e50  
    3939#define CONFIGURE_MAXIMUM_TASKS 1
    4040
     41#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     42
    4143#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4244
  • testsuites/psxtests/psxrdwrv/test.c

    r2272905 r698c2e50  
    3838  #include <rtems/libio.h>
    3939  #include <pmacros.h>
     40
     41  const char rtems_test_name[] = "PSXRDWRV";
    4042#else
    4143  #define TRUE  1
     
    425427#endif
    426428{
    427   puts( "*** POSIX TEST READV/WRITEV ***" );
     429  TEST_BEGIN();
    428430
    429431  if ( fillPatternBuffer() != TRUE ) {
     
    442444
    443445  unlink(TESTFILE);
    444   puts( "*** END OF TEST PSXRDWRV ***" );
     446  TEST_END();
    445447  rtems_test_exit(0);
    446448}
  • testsuites/psxtests/psxreaddir/main.c

    r2272905 r698c2e50  
    3535#define CONFIGURE_MAXIMUM_TASKS 1
    3636
     37#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     38
    3739#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3840
  • testsuites/psxtests/psxreaddir/test.c

    r2272905 r698c2e50  
    4040#include <errno.h>
    4141#include <rtems/imfs.h>
     42
     43const char rtems_test_name[] = "PSXREADDIR";
    4244
    4345/* forward declarations to avoid warnings */
     
    254256
    255257
    256   printf( "\n\n*** READDIR TEST ***\n" );
     258  TEST_BEGIN();
    257259
    258260  printf( "\nchdir to the root directory\n" );
     
    532534
    533535  test_across_mount();
    534   printf( "\n\n*** END OF READDIR TEST ***\n" );
     536  TEST_END();
    535537  rtems_test_exit(0);
    536538}
  • testsuites/psxtests/psxrwlock01/main.c

    r2272905 r698c2e50  
    1414#endif
    1515
     16#include <rtems/test.h>
    1617#include <bsp.h>
    1718#include <pmacros.h>
     
    3637#define CONFIGURE_MAXIMUM_TASKS 1
    3738
     39#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     40
    3841#define CONFIGURE_MAXIMUM_POSIX_THREADS 2
    3942#define CONFIGURE_MAXIMUM_POSIX_RWLOCKS 1
     43
     44#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    4045
    4146#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
  • testsuites/psxtests/psxrwlock01/test.c

    r2272905 r698c2e50  
    2525/* #define __USE_XOPEN2K XXX already defined on GNU/Linux */
    2626#include <pthread.h>
     27
     28const char rtems_test_name[] = "PSXRWLOCK 1";
    2729
    2830/* forward declarations to avoid warnings */
     
    109111  struct timespec      abstime;
    110112
    111   puts( "\n\n*** POSIX RWLOCK TEST 01 ***" );
     113  TEST_BEGIN();
    112114
    113115  /*************** NULL POINTER CHECKS *****************/
     
    484486
    485487  /*************** END OF TEST *****************/
    486   puts( "*** END OF POSIX RWLOCK TEST 01 ***" );
     488  TEST_END();
    487489  exit(0);
    488490}
  • testsuites/psxtests/psxsem01/init.c

    r2272905 r698c2e50  
    2020#include <pmacros.h>
    2121#include "test_support.h"
     22
     23const char rtems_test_name[] = "PSXSEM 1";
    2224
    2325/* forward declarations to avoid warnings */
     
    5052  char            failure_msg[80];
    5153
    52   puts( "\n\n*** POSIX SEMAPHORE MANAGER TEST 1 ***" );
     54  TEST_BEGIN();
    5355
    5456  puts( "Init: sem_init - UNSUCCESSFUL (EINVAL)" );
     
    307309  /* Try adding in unlinking before closing... (can we still open?) */
    308310
    309   puts( "*** END OF POSIX SEMAPHORE MANAGER TEST 1 ***" );
     311  TEST_END();
    310312  rtems_test_exit(0);
    311313
     
    319321#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    320322
     323#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     324
    321325#define CONFIGURE_MAXIMUM_POSIX_THREADS     1
    322326#define CONFIGURE_MAXIMUM_POSIX_SEMAPHORES  MAX_SEMS
  • testsuites/psxtests/psxsignal01/init.c

    r2272905 r698c2e50  
    1717#include <errno.h>
    1818#include <reent.h>
     19
     20const char rtems_test_name[] = "PSXSIGNAL 1";
    1921
    2022/* forward declarations to avoid warnings */
     
    105107  rtems_interval start, end;
    106108
    107   puts( "\n\n*** POSIX TEST SIGNAL ***" );
     109  TEST_BEGIN();
    108110
    109111  /* set the time of day, and print our buffer in multiple ways */
     
    234236
    235237  puts("*** Validate unexpected program termination ***");
    236   puts( "*** END OF POSIX TEST SIGNAL ***" );
     238  TEST_END();
    237239  _POSIX_signals_Abnormal_termination_handler( SIGUSR1 );
    238240  status = sleep( 1 );
  • testsuites/psxtests/psxsignal01/system.h

    r2272905 r698c2e50  
    3838#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3939
     40#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     41
    4042#define CONFIGURE_MAXIMUM_POSIX_THREADS        4
    4143#define CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS 5
  • testsuites/psxtests/psxsignal02/init.c

    r2272905 r698c2e50  
    1717#include <pthread.h>
    1818#include <sched.h>
     19
     20const char rtems_test_name[] = "PSXSIGNAL 2";
    1921
    2022/* forward declarations to avoid warnings */
     
    135137  struct timespec     delay_request;
    136138
    137   puts( "\n\n*** POSIX TEST SIGNAL 02 ***" );
     139  TEST_BEGIN();
    138140
    139141  Signal_occurred = false;
     
    183185  rtems_test_assert( Signal_occurred == false );
    184186
    185   puts( "*** END OF POSIX TEST SIGNAL 02 ***" );
     187  TEST_END();
    186188  rtems_test_exit(0);
    187189
     
    195197
    196198#define CONFIGURE_MICROSECONDS_PER_TICK        1000
     199#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     200
    197201#define CONFIGURE_MAXIMUM_POSIX_THREADS        9
    198202
  • testsuites/psxtests/psxsignal03/init.c

    r2272905 r698c2e50  
    1313
    1414#if defined(USE_USER_SIGNALS_PROCESS)
    15   #define TEST_NAME                "03"
     15  #define TEST_NAME                "PSXSIGNAL 3"
    1616  #define TEST_STRING              "User Signals to Process"
    1717  #define SIGNAL_ONE               SIGUSR1
     
    2121
    2222#elif defined(USE_REAL_TIME_SIGNALS_PROCESS)
    23   #define TEST_NAME                "04"
     23  #define TEST_NAME                "PSXSIGNAL 4"
    2424  #define TEST_STRING              "Real-Time Signals to Process"
    2525  #define SIGNAL_ONE               SIGRTMIN
     
    2929
    3030#elif defined(USE_USER_SIGNALS_THREAD)
    31   #define TEST_NAME                "05"
     31  #define TEST_NAME                "PSXSIGNAL 5"
    3232  #define TEST_STRING              "User Signals to Thread"
    3333  #define SIGNAL_ONE               SIGUSR1
     
    3737
    3838#elif defined(USE_REAL_TIME_SIGNALS_THREAD)
    39   #define TEST_NAME                "05"
     39  #define TEST_NAME                "PSXSIGNAL 5"
    4040  #define TEST_STRING              "Real-Time Signals to Thread"
    4141  #define SIGNAL_ONE               SIGRTMIN
     
    5353#include <pthread.h>
    5454#include <sched.h>
     55
     56const char rtems_test_name[] = TEST_NAME;
    5557
    5658/* forward declarations to avoid warnings */
     
    158160  struct timespec     delay_request;
    159161
    160   puts( "\n\n*** POSIX TEST SIGNAL " TEST_NAME " ***" );
     162  TEST_BEGIN();
    161163  puts( "Init - Variation is: " TEST_STRING );
    162164
     
    209211  rtems_test_assert( Signal_occurred == true );
    210212
    211   puts( "*** END OF POSIX TEST SIGNAL " TEST_NAME " ***" );
     213  TEST_END();
    212214  rtems_test_exit(0);
    213215
     
    220222#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    221223
     224#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     225
    222226#define CONFIGURE_MAXIMUM_POSIX_THREADS        3
    223227#define CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS 1
  • testsuites/psxtests/psxsignal05/init.c

    r2272905 r698c2e50  
    1212#endif
    1313
    14 #define TEST_NAME                "05"
     14#define TEST_NAME                "PSXSIGNAL 5"
    1515#define TEST_STRING              "User Signals"
    1616#define SIGNAL_ONE               SIGUSR1
     
    2222#include <errno.h>
    2323#include <rtems/posix/psignalimpl.h>
     24
     25const char rtems_test_name[] = TEST_NAME;
    2426
    2527/* forward declarations to avoid warnings */
     
    5961  bool                bc;
    6062
    61   puts( "\n\n*** POSIX TEST SIGNAL " TEST_NAME " ***" );
     63  TEST_BEGIN();
    6264
    6365  act.sa_handler = NULL;
     
    8587  rtems_test_assert( bc );
    8688
    87   puts( "*** END OF POSIX TEST SIGNAL " TEST_NAME " ***" );
     89  TEST_END();
    8890  rtems_test_exit(0);
    8991
     
    9698#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    9799
     100#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     101
    98102#define CONFIGURE_MAXIMUM_POSIX_THREADS        1
    99103
  • testsuites/psxtests/psxsignal06/init.c

    r2272905 r698c2e50  
    1616#include <pthread.h>
    1717#include <errno.h>
     18
     19const char rtems_test_name[] = "PSXSIGNAL 6";
    1820
    1921/* forward declarations to avoid warnings */
     
    7678  int status;
    7779
    78   puts( "\n\n*** POSIX TEST SIGNAL 06 ***" );
     80  TEST_BEGIN();
    7981
    8082  puts( "Init: pthread_cond_init - OK" );
     
    112114
    113115
    114   puts( "*** END OF POSIX TEST SIGNAL 06 ***" );
     116  TEST_END();
    115117
    116118  rtems_test_exit(0);
     
    121123#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    122124#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     125
     126#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    123127
    124128#define CONFIGURE_MAXIMUM_POSIX_THREADS             2
  • testsuites/psxtests/psxspin01/main.c

    r2272905 r698c2e50  
    4444#define CONFIGURE_MAXIMUM_POSIX_SPINLOCKS 1
    4545
     46#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     47
    4648#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4749#define CONFIGURE_INIT_TASK_STACK_SIZE    (RTEMS_MINIMUM_STACK_SIZE * 2)
  • testsuites/psxtests/psxspin01/test.c

    r2272905 r698c2e50  
    2626
    2727#include <rtems.h>  /* for task creation */
     28
     29const char rtems_test_name[] = "PSXSPIN 1";
    2830
    2931/* forward declarations to avoid warnings */
     
    8082  rtems_id              taskid;
    8183
    82   puts( "\n\n*** POSIX SPINLOCK TEST 01 ***" );
     84  TEST_BEGIN();
    8385
    8486  puts( "pthread_spin_init( NULL, PTHREAD_PROCESS_PRIVATE ) -- EINVAL" );
     
    223225
    224226  /*************** END OF TEST *****************/
    225   puts( "*** END OF POSIX SPINLOCK TEST 01 ***" );
     227  TEST_END();
    226228  exit(0);
    227229}
  • testsuites/psxtests/psxspin02/main.c

    r2272905 r698c2e50  
    4444#define CONFIGURE_MAXIMUM_POSIX_SPINLOCKS 1
    4545
     46#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     47
    4648#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4749#define CONFIGURE_INIT_TASK_STACK_SIZE    (RTEMS_MINIMUM_STACK_SIZE * 2)
  • testsuites/psxtests/psxspin02/test.c

    r2272905 r698c2e50  
    2626
    2727#include <rtems.h>  /* for task creation */
     28
     29const char rtems_test_name[] = "PSXSPIN 2";
    2830
    2931/* forward declarations to avoid warnings */
     
    6567  rtems_id              taskid;
    6668
    67   puts( "\n\n*** POSIX SPINLOCK TEST 02 ***" );
     69  TEST_BEGIN();
    6870
    6971  /* This successfully creates one */
     
    102104
    103105  /*************** END OF TEST *****************/
    104   puts( "*** END OF POSIX SPINLOCK TEST 02 ***" );
     106  TEST_END();
    105107  exit(0);
    106108}
  • testsuites/psxtests/psxstack01/init.c

    r2272905 r698c2e50  
    1919#include <rtems/posix/pthreadimpl.h>
    2020#include <rtems/score/stackimpl.h>
     21
     22const char rtems_test_name[] = "PSXSTACK 1";
    2123
    2224/* forward declarations to avoid warnings */
     
    5860  struct timespec     delay_request;
    5961
    60   puts( "\n\n*** POSIX STACK ATTRIBUTE TEST 01 ***" );
     62  TEST_BEGIN();
    6163
    6264  puts( "Init - Allocate stack from heap" );
     
    8587  rtems_test_assert( !sc );
    8688
    87   puts( "*** END OF POSIX STACK ATTRIBUTE TEST 01 ***" );
     89  TEST_END();
    8890  rtems_test_exit(0);
    8991
     
    9698#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    9799
     100#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     101
    98102#define CONFIGURE_MAXIMUM_POSIX_THREADS        2
    99103
  • testsuites/psxtests/psxstack02/init.c

    r2272905 r698c2e50  
    2121#include <rtems/posix/pthreadimpl.h>
    2222#include <rtems/score/stackimpl.h>
     23
     24const char rtems_test_name[] = "PSXSTACK 2";
    2325
    2426/* forward declarations to avoid warnings */
     
    5961  struct timespec     delay_request;
    6062
    61   puts( "\n\n*** POSIX STACK ATTRIBUTE TEST 02  ***" );
     63  TEST_BEGIN();
    6264
    6365  puts( "Init - Allocate stack from heap" );
     
    8688#endif
    8789 
    88   puts( "*** END OF POSIX STACK ATTRIBUTE TEST 02  ***" );
     90  TEST_END();
    8991
    9092  rtems_test_exit(0);
     
    9698#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    9799
     100#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     101
    98102#define CONFIGURE_MAXIMUM_POSIX_THREADS        2
    99103
  • testsuites/psxtests/psxstat/main.c

    r2272905 r698c2e50  
    3939#define CONFIGURE_MAXIMUM_TASKS 1
    4040
     41#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     42
    4143#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4244#define CONFIGURE_INIT_TASK_STACK_SIZE    (RTEMS_MINIMUM_STACK_SIZE * 2)
  • testsuites/psxtests/psxstat/test.c

    r2272905 r698c2e50  
    3737
    3838#include "primode.h"
     39
     40const char rtems_test_name[] = "PSXSTAT";
    3941
    4042/* forward declarations to avoid warnings */
     
    557559
    558560#if 0
    559   printf("\n\nPass an invalid mode to chmod should fail with EPERM \n" );
    560561  status = chmod( Files[0], S_IFREG );
    561562  rtems_test_assert( status == -1 );
     
    610611   */
    611612
    612   printf( "\n\nchmod of %s to Read/Write\n", Directories[0] );
    613613  status = chmod( Directories[0], (S_IXGRP | S_IXOTH) );
    614614  rtems_test_assert( status == 0 );
     
    821821  int status;
    822822
    823   puts( "\n\n*** STAT TEST 01 ***" );
     823  TEST_BEGIN();
    824824
    825825  build_time( &time, 12, 31, 1988, 9, 0, 0, 0 );
     
    942942  test_statvfs();
    943943
    944   puts( "\n\n*** END OF STAT TEST 01 ***" );
     944  TEST_END();
    945945  rtems_test_exit(0);
    946946}
  • testsuites/psxtests/psxsysconf/init.c

    r2272905 r698c2e50  
    2020#include <errno.h>
    2121
     22const char rtems_test_name[] = "PSXSYSCONF";
     23
    2224void *POSIX_Init(
    2325  void *argument
     
    2628  long  sc;
    2729
    28   puts( "\n\n*** POSIX TEST -- SYSCONF ***" );
     30  TEST_BEGIN();
    2931
    3032  puts( "sysconf -- bad configuration parameter - negative" );
     
    8082#endif
    8183
    82   puts( "*** END OF POSIX TEST SYSCONF ***" );
     84  TEST_END();
    8385  rtems_test_exit( 0 );
    8486
  • testsuites/psxtests/psxsysconf/system.h

    r2272905 r698c2e50  
    2727#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    2828
     29#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     30
    2931#define CONFIGURE_MAXIMUM_POSIX_THREADS     2
    3032
  • testsuites/psxtests/psxtime/main.c

    r2272905 r698c2e50  
    3939#define CONFIGURE_MAXIMUM_TASKS 1
    4040
     41#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     42
    4143#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    4244
  • testsuites/psxtests/psxtime/test.c

    r2272905 r698c2e50  
    2525#include <rtems/libio.h>
    2626#include <sys/time.h>
     27
     28const char rtems_test_name[] = "PSXTIME";
    2729
    2830#if !HAVE_DECL_ADJTIME
     
    200202  int sc;
    201203
    202   puts( "\n\n*** POSIX TIME OF DAY TEST ***" );
     204  TEST_BEGIN();
    203205
    204206  puts( "gettimeofday( NULL, NULL ) - EFAULT" );
     
    224226  }
    225227
    226   puts( "\n\n*** END OF TIME OF DAY TEST 01 ***" );
     228  TEST_END();
    227229  rtems_test_exit(0);
    228230}
  • testsuites/psxtests/psxtimer01/psxtimer.c

    r2272905 r698c2e50  
    3636#include <rtems/score/timespec.h>
    3737#include "pritime.h"
     38
     39const char rtems_test_name[] = "PSXTIMER 1";
    3840
    3941void StopTimer(
     
    342344   struct periodic_params params_a, params_b, params_c, params_c1;
    343345
    344    puts( "\n\n*** POSIX Timers Test 01 ***" );
     346   TEST_BEGIN();
    345347
    346348   data.updated = FALSE;
     
    456458   sleep(5);
    457459
    458    puts( "*** END OF POSIX Timers Test 01 ***" );
     460   TEST_END();
    459461   rtems_test_exit (0);
    460462 }
  • testsuites/psxtests/psxtimer01/system.h

    r2272905 r698c2e50  
    4040#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    4141
     42#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     43
    4244#define CONFIGURE_MAXIMUM_POSIX_THREADS             5
    4345#define CONFIGURE_MAXIMUM_POSIX_TIMERS              5
  • testsuites/psxtests/psxtimer02/psxtimer.c

    r2272905 r698c2e50  
    3333#include <stdio.h>    /* console facilities */
    3434
     35const char rtems_test_name[] = "PSXTIMER 2";
     36
    3537void *POSIX_Init (
    3638  void *argument
     
    5153  event.sigev_signo = SIGUSR1;
    5254
    53   puts( "\n\n*** POSIX Timers Test 02 ***" );
     55  TEST_BEGIN();
    5456
    5557  puts( "timer_create - bad clock id - EINVAL" );
     
    126128  fatal_posix_service_status_errno( status, EINVAL, "bad id" );
    127129
    128   puts( "*** END OF POSIX Timers Test 02 ***" );
     130  TEST_END();
    129131  rtems_test_exit (0);
    130132}
  • testsuites/psxtests/psxtimer02/system.h

    r2272905 r698c2e50  
    2727#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    2828
     29#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     30
    2931#define CONFIGURE_MAXIMUM_POSIX_THREADS             1
    3032#define CONFIGURE_MAXIMUM_POSIX_TIMERS              1
  • testsuites/psxtests/psxtimes01/init.c

    r2272905 r698c2e50  
    1616#include <sys/times.h>
    1717#include <errno.h>
     18
     19const char rtems_test_name[] = "PSXTIMES 1";
    1820
    1921/* forward declarations to avoid warnings */
     
    3537  int        interval = 5;
    3638
    37   puts( "\n\n*** TEST TIMES 01 ***" );
     39  TEST_BEGIN();
    3840
    3941  puts( "times( NULL ) -- EFAULT" );
     
    7072  rtems_test_assert( end_tm.tms_cstime == 0 );
    7173 
    72   puts( "*** END OF TEST TIMES 01 ***" );
     74  TEST_END();
    7375
    7476  rtems_test_exit(0);
     
    8183
    8284#define CONFIGURE_MAXIMUM_TASKS             1
     85#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     86
    8387#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    8488
  • testsuites/psxtests/psxualarm/init.c

    r2272905 r698c2e50  
    1717#include <unistd.h>
    1818#include <errno.h>
     19
     20const char rtems_test_name[] = "PSXUALARM";
    1921
    2022/* forward declarations to avoid warnings */
     
    6769  sigset_t          mask;
    6870
    69   puts( "\n\n*** POSIX TEST UALARM ***" );
     71  TEST_BEGIN();
    7072
    7173  /* set the time of day, and print our buffer in multiple ways */
     
    108110  status = sleep(10);
    109111
    110   puts( "*** END OF POSIX TEST UALARM ***" );
     112  TEST_END();
    111113  rtems_test_exit(0);
    112114
  • testsuites/psxtests/psxualarm/system.h

    r2272905 r698c2e50  
    3838#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    3939
     40#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     41
    4042#define CONFIGURE_MAXIMUM_POSIX_THREADS        4
    4143#define CONFIGURE_MAXIMUM_POSIX_QUEUED_SIGNALS 5
  • testsuites/psxtests/psxusleep/init.c

    r2272905 r698c2e50  
    1616#include <errno.h>
    1717
     18const char rtems_test_name[] = "PSXUSLEEP";
     19
    1820/* forward declarations to avoid warnings */
    1921rtems_task Init(rtems_task_argument argument);
     
    2830  int             sc;
    2931
    30   puts( "\n\n*** POSIX USLEEP TEST ***" );
     32  TEST_BEGIN();
    3133
    3234  tm_build_time( &tm, TM_FRIDAY, TM_MAY, 24, 96, 11, 5, 0 );
     
    5860  printf( ctime( &tv.tv_sec ) );
    5961
    60   puts( "*** END OF POSIX USLEEP TEST ***" );
     62  TEST_END();
    6163  rtems_test_exit(0);
    6264}
     
    6769#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    6870
     71#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     72
    6973#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    7074#define CONFIGURE_MAXIMUM_TASKS             1
Note: See TracChangeset for help on using the changeset viewer.