Changeset fd46711 in rtems


Ignore:
Timestamp:
Mar 21, 2014, 8:35:26 PM (7 years ago)
Author:
bjorn larsson <bjornlarsson@…>
Branches:
4.11, 5, master
Children:
5f104ee
Parents:
2ead50a
git-author:
bjorn larsson <bjornlarsson@…> (03/21/14 20:35:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/25/14 07:06:37)
Message:

psxtmtests: Add test.h support

Location:
testsuites/psxtmtests
Files:
44 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtmtests/psxtmbarrier01/init.c

    r2ead50a rfd46711  
    1616#include "test_support.h"
    1717#include <pthread.h>
     18
     19const char rtems_test_name[] = "PSXTMBARRIER 01";
    1820
    1921/* forward declarations to avoid warnings */
     
    7274)
    7375{
    74   puts( "\n\n*** POSIX TIME TEST PSXTMBARRIER 01 ***" );
     76  TEST_BEGIN();
    7577
    7678  /* creating barrier with default properties */
     
    7981  benchmark_pthread_barrier_destroy();
    8082 
    81   puts( "*** END OF POSIX TIME TEST PSXTMBARRIER 01  ***" );
     83  TEST_END();
    8284
    8385  rtems_test_exit(0);
  • testsuites/psxtmtests/psxtmbarrier02/init.c

    r2ead50a rfd46711  
    1919#include <pthread.h>
    2020#include <sched.h>
     21
     22const char rtems_test_name[] = "PSXTMBARRIER 02";
    2123
    2224/* forward declarations to avoid warnings */
     
    5153  );
    5254
    53   puts( "*** END OF POSIX TIME PSXTMBARRIER 02 ***" );
     55  TEST_END();
    5456
    5557  rtems_test_exit( 0 );
     
    8587  pthread_barrierattr_t attr;
    8688
    87   puts( "\n\n*** POSIX TIME PSXTMBARRIER 02 ***" );
     89  TEST_BEGIN();
    8890
    8991  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
  • testsuites/psxtmtests/psxtmbarrier03/init.c

    r2ead50a rfd46711  
    1919#include <sched.h>
    2020#include <rtems/timerdrv.h>
     21
     22const char rtems_test_name[] = "PSXTMBARRIER 03";
    2123
    2224/* forward declarations to avoid warnings */
     
    4446  benchmark_timer_t end_time;
    4547
    46   puts( "\n\n*** POSIX TIME TEST PSXTMBARRIER 03 ***" );
     48  TEST_BEGIN();
    4749
    4850  status = pthread_create( &threadId, NULL, Blocker, NULL );
     
    8587  );
    8688
    87   puts( "*** END OF POSIX TIME TEST PSXTMBARRIER 03 ***" );
     89  TEST_END();
    8890  rtems_test_exit( 0 );
    8991
  • testsuites/psxtmtests/psxtmbarrier04/init.c

    r2ead50a rfd46711  
    1717#include <sched.h>
    1818#include <rtems/timerdrv.h>
     19
     20const char rtems_test_name[] = "PSXTMBARRIER 04";
    1921
    2022/* forward declarations to avoid warnings */
     
    4446    0
    4547  );
    46   puts( "*** END OF POSIX TIME TEST PSXTMBARRIER 04 ***" );
     48  TEST_END();
    4749  rtems_test_exit( 0 );
    4850
     
    5860  struct sched_param param;
    5961
    60   puts( "\n\n*** POSIX TIME TEST PSXTMBARRIER 04 ***" );
     62  TEST_BEGIN();
    6163
    6264  status = pthread_create( &threadId, NULL, Blocker, NULL );
  • testsuites/psxtmtests/psxtmcond01/init.c

    r2ead50a rfd46711  
    1919#include <sched.h>
    2020#include <rtems/timerdrv.h>
     21
     22const char rtems_test_name[] = "PSXTMCOND 01";
    2123
    2224/* forward declarations to avoid warnings */
     
    6971)
    7072{
    71   puts( "\n\n*** POSIX TIME TEST PSXTMCOND01 ***" );
     73  TEST_BEGIN();
    7274
    7375  benchmark_create_cond_var();
    7476  benchmark_destroy_cond_var();
    7577
    76   puts( "*** END OF POSIX TIME TEST PSXTMCOND01 ***" );
     78  TEST_END();
    7779  rtems_test_exit(0);
    7880}
  • testsuites/psxtmtests/psxtmcond02/init.c

    r2ead50a rfd46711  
    1616#include <rtems/timerdrv.h>
    1717#include "test_support.h"
     18
     19const char rtems_test_name[] = "PSXTMCOND 02";
    1820
    1921/* forward declarations to avoid warnings */
     
    4951)
    5052
    51   puts( "\n\n*** POSIX TIME TEST PSXTMCOND02 ***" );
     53  TEST_BEGIN();
    5254
    5355  pthread_cond_init(&CondID, NULL);
     
    5557  benchmark_signal();
    5658
    57   puts( "*** END OF POSIX TIME TEST PSXTMCOND02 ***" );
     59  TEST_END();
    5860  rtems_test_exit(0);
    5961}
  • testsuites/psxtmtests/psxtmcond03/init.c

    r2ead50a rfd46711  
    1919#include <sched.h>
    2020#include <rtems/timerdrv.h>
     21
     22const char rtems_test_name[] = "PSXTMCOND 03";
    2123
    2224/* forward declarations to avoid warnings */
     
    5557  int policy;
    5658
    57   puts( "\n\n*** POSIX TIME TEST PSXTMCOND03 ***" );
     59  TEST_BEGIN();
    5860
    5961  status = pthread_create( &threadId, NULL, Blocker, NULL );
     
    9395  );
    9496
    95   puts( "*** END OF POSIX TIME TEST PSXTMCOND03 ***" );
     97  TEST_END();
    9698  rtems_test_exit( 0 );
    9799
  • testsuites/psxtmtests/psxtmcond04/init.c

    r2ead50a rfd46711  
    1919#include <sched.h>
    2020#include <rtems/timerdrv.h>
     21
     22const char rtems_test_name[] = "PSXTMCOND 04";
    2123
    2224/* forward declarations to avoid warnings */
     
    5557    0
    5658  );
    57   puts( "*** END OF POSIX TIME TEST PSXTMCOND04 ***" );
     59  TEST_END();
    5860  rtems_test_exit( 0 );
    5961  return NULL;
     
    6769  pthread_t  threadId;
    6870
    69   puts( "\n\n*** POSIX TIME TEST PSXTMCOND04 ***" );
     71  TEST_BEGIN();
    7072
    7173  status = pthread_create( &threadId, NULL, Blocker, NULL );
  • testsuites/psxtmtests/psxtmcond05/init.c

    r2ead50a rfd46711  
    1616#include <rtems/timerdrv.h>
    1717#include "test_support.h"
     18
     19const char rtems_test_name[] = "PSXTMCOND 05";
    1820
    1921/* forward declarations to avoid warnings */
     
    4850{
    4951
    50   puts( "\n\n*** POSIX TIME TEST PSXTMCOND05 ***" );
     52  TEST_BEGIN();
    5153
    5254  pthread_cond_init(&CondID, NULL);
     
    5456  benchmark_broadcast();
    5557
    56   puts( "*** END OF POSIX TIME TEST PSXTMCOND05 ***" );
     58  TEST_END();
    5759  rtems_test_exit(0);
    5860}
  • testsuites/psxtmtests/psxtmcond06/init.c

    r2ead50a rfd46711  
    2121
    2222#define N 5
     23
     24const char rtems_test_name[] = "PSXTMCOND 06";
    2325
    2426/* forward declarations to avoid warnings */
     
    5961  int                 policy;
    6062
    61   puts( "\n\n*** POSIX TIME TEST PSXTMCOND06 ***" );
     63  TEST_BEGIN();
    6264
    6365  /* Setup variables */
     
    110112  );
    111113
    112   puts( "*** END OF POSIX TIME TEST PSXTMCOND06 ***" );
     114  TEST_END();
    113115  rtems_test_exit( 0 );
    114116
  • testsuites/psxtmtests/psxtmcond07/init.c

    r2ead50a rfd46711  
    2121
    2222#define N 1
     23
     24const char rtems_test_name[] = "PSXTMCOND 07";
    2325
    2426/* forward declarations to avoid warnings */
     
    5153  );
    5254
    53   puts( "*** END OF POSIX TIME TEST PSXTMCOND07 ***" );
     55  TEST_END();
    5456  rtems_test_exit( 0 );
    5557  return NULL;
     
    6769  struct sched_param  param;
    6870
    69   puts( "\n\n*** POSIX TIME TEST PSXTMCOND07 ***" );
     71  TEST_BEGIN();
    7072
    7173  /* Setup variables */
  • testsuites/psxtmtests/psxtmcond08/init.c

    r2ead50a rfd46711  
    3636#include <pthread.h>
    3737
     38const char rtems_test_name[] = "PSXTMCOND 08";
     39
    3840/* forward declarations to avoid warnings */
    3941void *POSIX_Init(void *argument);
     
    6163  );
    6264
    63   puts( "*** END OF POSIX TIME TEST PSXTMCOND" TEST_NUMBER " ***" );
     65  TEST_END();
    6466
    6567  rtems_test_exit( 0 );
     
    124126  struct timeval  tp;
    125127
    126   puts( "\n\n*** POSIX TIME TEST PSXTMCOND" TEST_NUMBER " ***" );
     128  TEST_BEGIN();
    127129
    128130  rc =  gettimeofday(&tp, NULL);
  • testsuites/psxtmtests/psxtmkey01/init.c

    r2ead50a rfd46711  
    1717#include <pthread.h>
    1818#include "test_support.h"
     19
     20const char rtems_test_name[] = "PSXTMKEY 01";
    1921
    2022/* forward declarations to avoid warnings */
     
    6668{
    6769
    68   puts( "\n\n*** POSIX TIME TEST PSXTMKEY01 ***" );
     70  TEST_BEGIN();
    6971
    7072  /*key creation, using NULL destructor*/
     
    7476  benchmark_pthread_key_delete();
    7577 
    76   puts( "*** END OF POSIX TIME TEST PSXTMKEY01 ***" );
     78  TEST_END();
    7779
    7880  rtems_test_exit(0);
  • testsuites/psxtmtests/psxtmkey02/init.c

    r2ead50a rfd46711  
    1717#include <pthread.h>
    1818#include "test_support.h"
     19
     20const char rtems_test_name[] = "PSXTMKEY 02";
    1921
    2022/* forward declarations to avoid warnings */
     
    7173  int  status;
    7274
    73   puts( "\n\n*** POSIX TIME TEST PSXTMKEY02 ***" );
     75  TEST_BEGIN();
    7476
    7577  /* create the key */
     
    8587  rtems_test_assert( status == 0 );
    8688
    87   puts( "*** END OF POSIX TIME TEST PSXTMKEY02 ***" );
     89  TEST_END();
    8890  rtems_test_exit(0);
    8991}
  • testsuites/psxtmtests/psxtmmq01/init.c

    r2ead50a rfd46711  
    2020#include <signal.h>   /* signal facilities */
    2121
     22const char rtems_test_name[] = "PSXTMMQ 01";
     23
    2224/* forward declarations to avoid warnings */
    2325void *POSIX_Init(void *argument);
     
    257259)
    258260{
    259   puts( "\n\n*** POSIX TIME TEST PSXTMMQ01 ***" );
     261  TEST_BEGIN();
    260262  /* create the first message queue READWRITE */
    261263  benchmark_mq_open(1);
     
    288290  benchmark_mq_close(1);
    289291
    290   puts( "*** END OF POSIX TIME TEST PSXTMMQ01 ***" );
     292 TEST_END();
    291293  rtems_test_exit(0);
    292294}
  • testsuites/psxtmtests/psxtmmutex01/init.c

    r2ead50a rfd46711  
    1717#include <pthread.h>
    1818#include "test_support.h"
     19
     20const char rtems_test_name[] = "PSXTMMUTEX 01";
    1921
    2022/* forward declarations to avoid warnings */
     
    6668{
    6769
    68   puts( "\n\n*** POSIX TIME TEST PSXTMMUTEX01 ***" );
     70  TEST_BEGIN();
    6971
    7072  test_mutex_create();
    7173  test_mutex_destroy();
    7274
    73   puts( "*** END OF POSIX TIME TEST PSXTMMUTEX01 ***" );
     75  TEST_END();
    7476
    7577  rtems_test_exit(0);
  • testsuites/psxtmtests/psxtmmutex02/init.c

    r2ead50a rfd46711  
    1919#include <sched.h>
    2020#include <rtems/timerdrv.h>
     21
     22const char rtems_test_name[] = "PSXTMMUTEX 02";
    2123
    2224/* forward declarations to avoid warnings */
     
    5153  );
    5254
    53   puts( "*** END OF POSIX TIME TEST PSXTMMUTEX02 ***" );
     55  TEST_END();
    5456
    5557  rtems_test_exit( 0 );
     
    8587  pthread_t  threadId;
    8688
    87   puts( "\n\n*** POSIX TIME TEST PSXTMMUTEX02 ***" );
     89  TEST_BEGIN();
    8890
    8991  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
  • testsuites/psxtmtests/psxtmmutex03/init.c

    r2ead50a rfd46711  
    1717#include <pthread.h>
    1818#include "test_support.h"
     19
     20const char rtems_test_name[] = "PSXTMMUTEX 03";
    1921
    2022/* forward declarations to avoid warnings */
     
    134136  int  status;
    135137
    136   puts( "\n\n*** POSIX TIME TEST PSXTMMUTEX03 ***" );
     138  TEST_BEGIN();
    137139 
    138140  /*
     
    161163  rtems_test_assert( !status );
    162164
    163   puts( "*** END OF POSIX TIME TEST PSXTMMUTEX03 ***" );
     165  TEST_END();
    164166
    165167  rtems_test_exit(0);
  • testsuites/psxtmtests/psxtmmutex04/init.c

    r2ead50a rfd46711  
    1919#include <pthread.h>
    2020#include <sched.h>
     21
     22const char rtems_test_name[] = "PSXTMMUTEX 04";
    2123
    2224/* forward declarations to avoid warnings */
     
    5153  );
    5254
    53   puts( "*** END OF POSIX TIME TEST PSXTMMUTEX04 ***" );
     55  TEST_END();
    5456
    5557  rtems_test_exit( 0 );
     
    8587  pthread_t  threadId;
    8688
    87   puts( "\n\n*** POSIX TIME TEST PSXTMMUTEX04 ***" );
     89  TEST_BEGIN();
    8890
    8991  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
  • testsuites/psxtmtests/psxtmmutex05/init.c

    r2ead50a rfd46711  
    1919#include <sched.h>
    2020#include <rtems/timerdrv.h>
     21
     22const char rtems_test_name[] = "PSXTMMUTEX 05";
    2123
    2224/* forward declarations to avoid warnings */
     
    4547  benchmark_timer_t end_time;
    4648
    47   puts( "\n\n*** POSIX TIME TEST PSXTMMUTEX05 ***" );
     49  TEST_BEGIN();
    4850
    4951  status = pthread_create( &threadId, NULL, Blocker, NULL );
     
    8385  );
    8486
    85   puts( "*** END OF POSIX TIME TEST PSXTMMUTEX05 ***" );
     87  TEST_END();
    8688  rtems_test_exit( 0 );
    8789
  • testsuites/psxtmtests/psxtmmutex06/init.c

    r2ead50a rfd46711  
    1919#include <sched.h>
    2020#include <rtems/timerdrv.h>
     21
     22const char rtems_test_name[] = "PSXTMMUTEX 06";
    2123
    2224/* forward declarations to avoid warnings */
     
    4749  );
    4850
    49   puts( "*** END OF POSIX TIME TEST PSXTMMUTEX07 ***" );
     51  TEST_END();
    5052  rtems_test_exit( 0 );
    5153  return NULL;
     
    8183  struct sched_param  param;
    8284
    83   puts( "\n\n*** POSIX TIME TEST PSXTMMUTEX02 ***" );
     85  TEST_BEGIN();
    8486
    8587  /*
  • testsuites/psxtmtests/psxtmmutex07/init.c

    r2ead50a rfd46711  
    1717#include <pthread.h>
    1818#include "test_support.h"
     19
     20const char rtems_test_name[] = "PSXTMMUTEX 07";
    1921
    2022/* forward declarations to avoid warnings */
     
    7173  int  status;
    7274
    73   puts( "\n\n*** POSIX TIME TEST PSXTMMUTEX07 ***" );
     75  TEST_BEGIN();
    7476  /* create mutex*/
    7577  status = pthread_mutex_init( &MutexId, NULL );
     
    8486  rtems_test_assert( status == 0 );
    8587 
    86   puts( "*** END OF POSIX TIME TEST PSXTMMUTEX07 ***" );
     88  TEST_END();
    8789
    8890  rtems_test_exit(0);
  • testsuites/psxtmtests/psxtmnanosleep01/init.c

    r2ead50a rfd46711  
    1616#include "test_support.h"
    1717
     18const char rtems_test_name[] = "PSXTMNANOSLEEP 01";
     19
    1820/* forward declarations to avoid warnings */
    1921void *POSIX_Init(void *argument);
     
    2931  sleepTime.tv_nsec = 0;
    3032
    31   puts( "\n\n*** POSIX TIME TEST PSXTMNANOSLEEP01 ***" );
     33  TEST_BEGIN();
    3234
    3335  benchmark_timer_initialize();   
     
    3739  put_time( "nanosleep: yield", end_time, 1, 0, 0 );
    3840
    39   puts( "*** END OF POSIX TIME TEST PSXTMNANOSLEEP01 ***" );
     41  TEST_END();
    4042
    4143  rtems_test_exit(0);
  • testsuites/psxtmtests/psxtmnanosleep02/init.c

    r2ead50a rfd46711  
    1717
    1818#include <pthread.h>
     19
     20const char rtems_test_name[] = "PSXTMNANOSLEEP 02";
    1921
    2022/* forward declarations to avoid warnings */
     
    3941  );
    4042
    41   puts( "*** END OF POSIX TIME TEST PSXTMNANOSLEEP02 ***" );
     43  TEST_END();
    4244
    4345  rtems_test_exit( 0 );
     
    7476  remainder.tv_nsec = 0;
    7577
    76   puts( "\n\n*** POSIX TIME TEST PSXTMNANOSLEEP02 ***" );
     78  TEST_BEGIN();
    7779
    7880  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
  • testsuites/psxtmtests/psxtmrwlock01/init.c

    r2ead50a rfd46711  
    1717#include "test_support.h"
    1818
     19const char rtems_test_name[] = "PSXTMRWLOCK 01";
     20
    1921/* forward declarations to avoid warnings */
    2022void *POSIX_Init(void *argument);
     
    224226{
    225227
    226   puts( "\n\n*** POSIX TIME PSXTMRWLOCK 01  ***" );
     228  TEST_BEGIN();
    227229
    228230  /* initializing rwlock */
     
    259261  benchmark_pthread_rwlock_destroy();
    260262
    261   puts( "*** END OF POSIX TIME PSXTMRWLOCK 01 ***" );
     263  TEST_END();
    262264
    263265  rtems_test_exit(0);
  • testsuites/psxtmtests/psxtmrwlock02/init.c

    r2ead50a rfd46711  
    1919#include <rtems/timerdrv.h>
    2020#include "test_support.h"
     21
     22const char rtems_test_name[] = "PSXTMRWLOCK 02";
    2123
    2224/* forward declarations to avoid warnings */
     
    5153  );
    5254
    53   puts( "*** END OF POSIX TIME PSXTMRWLOCK 02 TEST ***" );
     55  TEST_END();
    5456
    5557  rtems_test_exit( 0 );
     
    8688  pthread_rwlockattr_t attr;
    8789
    88   puts( "\n\n*** POSIX TIME PSXTMRWLOCK 02 TEST ***" );
     90  TEST_BEGIN();
    8991
    9092  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
  • testsuites/psxtmtests/psxtmrwlock03/init.c

    r2ead50a rfd46711  
    1919#include <rtems/timerdrv.h>
    2020#include "test_support.h"
     21
     22const char rtems_test_name[] = "PSXTMRWLOCK 03";
    2123
    2224/* forward declarations to avoid warnings */
     
    5254  );
    5355
    54   puts( "*** END OF POSIX TIME PSXTMRWLOCK 03 TEST ***" );
     56  TEST_END();
    5557
    5658  rtems_test_exit( 0 );
     
    8890  pthread_rwlockattr_t attr;
    8991
    90   puts( "\n\n*** POSIX TIME PSXTMRWLOCK 03 TEST ***" );
     92  TEST_BEGIN();
    9193
    9294  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
  • testsuites/psxtmtests/psxtmrwlock04/init.c

    r2ead50a rfd46711  
    1919#include <rtems/timerdrv.h>
    2020#include "test_support.h"
     21
     22const char rtems_test_name[] = "PSXTMRWLOCK 04";
    2123
    2224/* forward declarations to avoid warnings */
     
    5153  );
    5254
    53   puts( "*** END OF POSIX TIME PSXTMRWLOCK 04 TEST ***" );
     55  TEST_END();
    5456
    5557  rtems_test_exit( 0 );
     
    8789  pthread_rwlockattr_t attr;
    8890
    89   puts( "\n\n*** POSIX TIME PSXTMRWLOCK 04 TEST ***" );
     91  TEST_BEGIN();
    9092
    9193  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
  • testsuites/psxtmtests/psxtmrwlock05/init.c

    r2ead50a rfd46711  
    1919#include <rtems/timerdrv.h>
    2020#include "test_support.h"
     21
     22const char rtems_test_name[] = "PSXTMRWLOCK 05";
    2123
    2224/* forward declarations to avoid warnings */
     
    5254  );
    5355
    54   puts( "*** END OF POSIX TIME PSXTMRWLOCK 05 TEST ***" );
     56  TEST_END();
    5557
    5658  rtems_test_exit( 0 );
     
    8991  pthread_rwlockattr_t attr;
    9092
    91   puts( "\n\n*** POSIX TIME PSXTMRWLOCK 05 TEST ***" );
     93  TEST_BEGIN();
    9294
    9395  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
  • testsuites/psxtmtests/psxtmrwlock06/init.c

    r2ead50a rfd46711  
    1919#include "test_support.h"
    2020#include <rtems/timerdrv.h>
     21
     22const char rtems_test_name[] = "PSXTMRWLOCK 06";
    2123
    2224/* forward declarations to avoid warnings */
     
    4648  pthread_rwlockattr_t  attr;
    4749
    48   puts( "\n\n*** POSIX TIME TEST PSXTMRWLOCK 06 ***" );
     50  TEST_BEGIN();
    4951
    5052  status = pthread_create( &threadId, NULL, Blocker, NULL );
     
    8890  );
    8991
    90   puts( "*** END OF POSIX TIME TEST PSXTMRWLOCK 06 ***" );
     92  TEST_END();
    9193  rtems_test_exit( 0 );
    9294
  • testsuites/psxtmtests/psxtmrwlock07/init.c

    r2ead50a rfd46711  
    1919#include <sched.h>
    2020#include <rtems/timerdrv.h>
     21
     22const char rtems_test_name[] = "PSXTMRWLOCK 07";
    2123
    2224/* forward declarations to avoid warnings */
     
    4850  );
    4951
    50   puts( "*** END OF POSIX TIME TEST PSXTMRWLOCK 07 ***" );
     52  TEST_END();
    5153  rtems_test_exit( 0 );
    5254  return NULL;
     
    8587  pthread_rwlockattr_t rw_attr;
    8688
    87   puts( "\n\n*** POSIX TIME TEST PSXTMRWLOCK 07 ***" );
     89  TEST_BEGIN();
    8890
    8991  /*
  • testsuites/psxtmtests/psxtmsem01/init.c

    r2ead50a rfd46711  
    1919#include <rtems/timerdrv.h>
    2020#include "test_support.h"
     21
     22const char rtems_test_name[] = "PSXTMSEM 01";
    2123
    2224/* forward declarations to avoid warnings */
     
    165167{
    166168
    167   puts( "\n\n*** POSIX TIME TEST PSXTMSEM01 ***" );
     169  TEST_BEGIN();
    168170
    169171  /* creating unnamed semaphore */
     
    188190  benchmark_sem_unlink("sem_unlink: deletes semaphore");
    189191
    190   puts( "*** END OF POSIX TIME TEST PSXTMSEM01 ***" );
     192  TEST_END();
    191193
    192194  rtems_test_exit(0);
  • testsuites/psxtmtests/psxtmsem02/init.c

    r2ead50a rfd46711  
    1919#include <rtems/timerdrv.h>
    2020#include "test_support.h"
     21
     22const char rtems_test_name[] = "PSXTMSEM 02";
    2123
    2224/* forward declarations to avoid warnings */
     
    126128{
    127129  int status;
    128   puts( "\n\n*** POSIX TIME TEST PSXTMSEM02 ***" );
     130  TEST_BEGIN();
    129131
    130132  /* create the semaphore */
     
    143145  benchmark_sem_trywait_not_available();
    144146
    145   puts( "*** END OF POSIX TIME TEST PSXTMSEM02 ***" );
     147  TEST_END();
    146148
    147149  /*Destroying the semaphore*/
  • testsuites/psxtmtests/psxtmsem03/init.c

    r2ead50a rfd46711  
    2121#include <pthread.h>
    2222#include <sched.h>
     23
     24const char rtems_test_name[] = "PSXTMSEM 03";
    2325
    2426/* forward declarations to avoid warnings */
     
    5557  );
    5658
    57   puts( "*** END OF POSIX TIME TEST PSXTMSEM03 ***" );
     59  TEST_END();
    5860
    5961  rtems_test_exit( 0 );
     
    8688  pthread_t  threadId;
    8789
    88   puts( "\n\n*** POSIX TIME TEST PSXTMSEM03 ***" );
     90  TEST_BEGIN();
    8991
    9092  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
  • testsuites/psxtmtests/psxtmsem04/init.c

    r2ead50a rfd46711  
    2222#include <sched.h>
    2323#include <rtems/timerdrv.h>
     24
     25const char rtems_test_name[] = "PSXTMSEM 04";
    2426
    2527/* forward declarations to avoid warnings */
     
    4749  benchmark_timer_t end_time;
    4850
    49   puts( "\n\n*** POSIX TIME TEST SEMAPHORE 04 ***" );
     51  TEST_BEGIN();
    5052
    5153  status = pthread_create( &threadId, NULL, Blocker, NULL );
     
    8688  );
    8789
    88   puts( "*** END OF POSIX TIME TEST SEMAPHORE 04 ***" );
     90  TEST_END();
    8991  rtems_test_exit( 0 );
    9092
  • testsuites/psxtmtests/psxtmsem05/init.c

    r2ead50a rfd46711  
    2222#include <sched.h>
    2323#include <rtems/timerdrv.h>
     24
     25const char rtems_test_name[] = "PSXTMSEM 05";
    2426
    2527/* forward declarations to avoid warnings */
     
    5254  );
    5355
    54   puts( "*** END OF POSIX TIME TEST PSXTMSEM05 ***" );
     56  TEST_END();
    5557  rtems_test_exit( 0 );
    5658  return NULL;
     
    8890  struct sched_param  param;
    8991
    90   puts( "\n\n*** POSIX TIME TEST PSXTMSEM05  ***" );
     92  TEST_BEGIN();
    9193
    9294  /*
  • testsuites/psxtmtests/psxtmsleep01/init.c

    r2ead50a rfd46711  
    1818#include <unistd.h>
    1919
     20const char rtems_test_name[] = "PSXTMSLEEP 01";
     21
    2022/* forward declarations to avoid warnings */
    2123void *POSIX_Init(void *argument);
     
    2729  benchmark_timer_t end_time;
    2830
    29   puts( "\n\n*** POSIX TIME TEST PSXTMSLEEP01 ***" );
     31  TEST_BEGIN();
    3032
    3133  benchmark_timer_initialize();
     
    4143  );
    4244
    43   puts( "*** END OF POSIX TIME TEST PSXTMSLEEP01 ***" );
     45  TEST_END();
    4446
    4547  rtems_test_exit(0);
  • testsuites/psxtmtests/psxtmsleep02/init.c

    r2ead50a rfd46711  
    1717
    1818#include <pthread.h>
     19
     20const char rtems_test_name[] = "PSXTMSLEEP 02";
    1921
    2022/* forward declarations to avoid warnings */
     
    3941  );
    4042
    41   puts( "*** END OF POSIX TIME TEST PSXTMSLEEP02 ***" );
     43  TEST_END();
    4244
    4345  rtems_test_exit( 0 );
     
    6163  pthread_t  threadId;
    6264
    63   puts( "\n\n*** POSIX TIME TEST PSXTMSLEEP02 ***" );
     65  TEST_BEGIN();
    6466
    6567  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
  • testsuites/psxtmtests/psxtmthread01/init.c

    r2ead50a rfd46711  
    1818
    1919#include <pthread.h>
     20
     21const char rtems_test_name[] = "PSXTMTHREAD 01";
    2022
    2123/* forward declarations to avoid warnings */
     
    4850)
    4951{
    50   puts( "\n\n*** POSIX TIME TEST PSXTMTHREAD01 ***" );
     52  TEST_BEGIN();
    5153
    5254  rtems_time_test_measure_operation(
     
    5961
    6062 
    61   puts( "*** END OF POSIX TIME TEST PSXTMTHREAD01 ***" );
     63  TEST_END();
    6264
    6365  rtems_test_exit(0);
  • testsuites/psxtmtests/psxtmthread02/init.c

    r2ead50a rfd46711  
    1717#include <rtems/timerdrv.h>
    1818#include "test_support.h"
     19
     20const char rtems_test_name[] = "PSXTMTHREAD 02";
    1921
    2022/* forward declarations to avoid warnings */
     
    7072{
    7173
    72   puts( "\n\n*** POSIX TIME TEST PSXTMTHREAD02 ***" );
     74  TEST_BEGIN();
    7375
    7476  benchmark_pthread_create();
    7577
    76   puts( "*** END OF POSIX TIME TEST PSXTMTHREAD02 ***" );
     78  TEST_END();
    7779  rtems_test_exit(0);
    7880}
  • testsuites/psxtmtests/psxtmthread03/init.c

    r2ead50a rfd46711  
    1919#include <sched.h>
    2020#include <rtems/timerdrv.h>
     21
     22const char rtems_test_name[] = "PSXTMTHREAD 03";
    2123
    2224/* forward declarations to avoid warnings */
     
    4951  );
    5052
    51   puts( "*** END OF POSIX TIME TEST PSXTMTHREAD03 ***" );
     53  TEST_END();
    5254  rtems_test_exit( 0 );
    5355  return NULL;
     
    7880  pthread_t  threadId;
    7981
    80   puts( "\n\n*** POSIX TIME TEST PSXTMTHREAD03 ***" );
     82  TEST_BEGIN();
    8183
    8284  for ( i=0 ; i < OPERATION_COUNT - 1 ; i++ ) {
  • testsuites/psxtmtests/psxtmthread04/init.c

    r2ead50a rfd46711  
    1717#include <rtems/timerdrv.h>
    1818#include "test_support.h"
     19
     20const char rtems_test_name[] = "PSXTMTHREAD 04";
    1921
    2022/* forward declarations to avoid warnings */
     
    7678{
    7779
    78   puts( "\n\n*** POSIX TIME TEST PSXTMTHREAD04 ***" );
     80  TEST_BEGIN();
    7981
    8082  benchmark_pthread_getschedparam();
    8183  benchmark_pthread_setschedparam();
    8284
    83   puts( "*** END OF POSIX TIME TEST PSXTMTHREAD04 ***" );
     85  TEST_END();
    8486  rtems_test_exit(0);
    8587}
  • testsuites/psxtmtests/psxtmthread05/init.c

    r2ead50a rfd46711  
    1818#include <rtems/timerdrv.h>
    1919#include "test_support.h"
     20
     21const char rtems_test_name[] = "PSXTMTHREAD 05";
    2022
    2123/* forward declarations to avoid warnings */
     
    6567  );
    6668
    67   puts( "*** END OF POSIX TIME TEST PSXTMTHREAD05 ***" );
     69  TEST_END();
    6870  rtems_test_exit(0);
    6971  //Empty thread used in pthread_create().
     
    7678{
    7779
    78   puts( "\n\n*** POSIX TIME TEST PSXTMTHREAD05 ***" );
     80  TEST_BEGIN();
    7981  benchmark_pthread_setschedparam();
    8082
  • testsuites/psxtmtests/psxtmthread06/init.c

    r2ead50a rfd46711  
    1919#include <rtems/timerdrv.h>
    2020#include "test_support.h"
     21
     22const char rtems_test_name[] = "PSXTMTHREAD 06";
    2123
    2224/* forward declarations to avoid warnings */
     
    6769  );
    6870
    69   puts( "*** END OF POSIX TIME TEST PSXTMTHREAD06 ***" );
     71  TEST_END();
    7072  rtems_test_exit(0);
    7173  //Empty thread used in pthread_create().
     
    7880{
    7981
    80   puts( "\n\n*** POSIX TIME TEST PSXTMTHREAD06 ***" );
     82  TEST_BEGIN();
    8183  benchmark_pthread_setschedparam();
    8284
Note: See TracChangeset for help on using the changeset viewer.