Changeset ad48ebb in rtems


Ignore:
Timestamp:
Mar 17, 2014, 7:10:19 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
bc75887
Parents:
9391f6d
git-author:
Sebastian Huber <sebastian.huber@…> (03/17/14 07:10:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/17/14 08:17:36)
Message:

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

Location:
testsuites/smptests
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smp01/init.c

    r9391f6d rad48ebb  
    1616
    1717#include <inttypes.h>
     18
     19const char rtems_test_name[] = "SMP 1";
    1820
    1921void Loop() {
     
    4143   */
    4244  Loop();
     45
     46  TEST_BEGIN();
     47
    4348  locked_print_initialize();
    44 
    45   /* Put start of test message */
    46   locked_printf( "\n\n***  SMP01 TEST ***\n" );
    4749
    4850  /* Initialize the TaskRan array */
     
    8284    }
    8385    if (allDone) {
    84       locked_printf( "*** END OF TEST SMP01 ***\n" );
     86      TEST_END();
    8587      rtems_test_exit( 0 );
    8688    }
  • testsuites/smptests/smp01/system.h

    r9391f6d rad48ebb  
    3333#define CONFIGURE_MAXIMUM_SEMAPHORES 1
    3434
     35#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     36
    3537#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3638
  • testsuites/smptests/smp02/init.c

    r9391f6d rad48ebb  
    1818#include <inttypes.h>
    1919
     20const char rtems_test_name[] = "SMP 2";
     21
    2022static void success(void)
    2123{
    22   locked_printf( "*** END OF TEST SMP02 ***\n" );
     24  TEST_END();
    2325  rtems_test_exit( 0 );
    2426}
     
    3537  char              str[80];
    3638
     39  TEST_BEGIN();
     40
    3741  locked_print_initialize();
    38   locked_printf( "\n\n***  SMP02 TEST ***\n" );
    3942
    4043  if ( rtems_smp_get_processor_count() == 1 ) {
  • testsuites/smptests/smp02/system.h

    r9391f6d rad48ebb  
    3131#define CONFIGURE_MAXIMUM_TASKS            \
    3232    (1 + CONFIGURE_SMP_MAXIMUM_PROCESSORS)
     33
     34#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    3335
    3436#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
  • testsuites/smptests/smp03/init.c

    r9391f6d rad48ebb  
    1818#include <inttypes.h>
    1919
     20const char rtems_test_name[] = "SMP 3";
     21
    2022static void success(void)
    2123{
    22   locked_printf( "*** END OF TEST SMP03 ***\n" );
     24  TEST_END();
    2325  rtems_test_exit( 0 );
    2426}
     
    5153
    5254  Loop();
     55
     56  TEST_BEGIN();
     57
    5358  locked_print_initialize();
    54 
    55   locked_printf( "\n\n***  SMP03 TEST ***\n" );
    5659
    5760  if ( rtems_smp_get_processor_count() == 1 ) {
  • testsuites/smptests/smp03/system.h

    r9391f6d rad48ebb  
    3333
    3434#define CONFIGURE_MAXIMUM_SEMAPHORES 1
     35
     36#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
    3537
    3638#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
  • testsuites/smptests/smp05/init.c

    r9391f6d rad48ebb  
    1515#include "test_support.h"
    1616
     17const char rtems_test_name[] = "SMP 6";
     18
    1719static void success(void)
    1820{
    19   locked_printf( "*** END OF TEST SMP05 ***\n" );
     21  TEST_END();
    2022  rtems_test_exit( 0 );
    2123}
     
    3941  rtems_status_code  status;
    4042
     43  TEST_BEGIN();
     44
    4145  locked_print_initialize();
    42   locked_printf( "\n\n*** TEST SMP05 ***\n" );
    4346
    4447  if ( rtems_smp_get_processor_count() == 1 ) {
     
    8083#define CONFIGURE_MAXIMUM_TASKS            \
    8184    (1 + CONFIGURE_SMP_MAXIMUM_PROCESSORS)
     85#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     86
    8287#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    8388
  • testsuites/smptests/smp07/init.c

    r9391f6d rad48ebb  
    1515#include "test_support.h"
    1616
     17const char rtems_test_name[] = "SMP 7";
     18
    1719volatile bool TaskRan = false;
    1820volatile bool TSRFired = false;
     
    2123static void success(void)
    2224{
    23   locked_printf( "*** END OF TEST SMP07 ***\n" );
     25  TEST_END();
    2426  rtems_test_exit( 0 );
    2527}
     
    8890  rtems_id           Timer;
    8991
     92  TEST_BEGIN();
     93
    9094  locked_print_initialize();
    91   locked_printf( "\n\n*** TEST SMP07 ***\n" );
    9295
    9396  if ( rtems_smp_get_processor_count() == 1 ) {
     
    172175
    173176#define CONFIGURE_MAXIMUM_TASKS            2
     177#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     178
    174179#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    175180#define CONFIGURE_MAXIMUM_SEMAPHORES       2
  • testsuites/smptests/smp08/init.c

    r9391f6d rad48ebb  
    1414#define CONFIGURE_INIT
    1515#include "system.h"
     16
     17const char rtems_test_name[] = "SMP 8";
    1618
    1719void PrintTaskInfo(
     
    4547  char              ch[4];
    4648  rtems_id          id;
     49
     50  TEST_BEGIN();
    4751 
    4852  locked_print_initialize();
    49   locked_printf( "\n\n*** SMP08 TEST ***\n" );
    5053
    5154  time.year   = 1988;
  • testsuites/smptests/smp08/system.h

    r9391f6d rad48ebb  
    3434    (1 + (CONFIGURE_SMP_MAXIMUM_PROCESSORS*3) )
    3535
     36#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     37
    3638#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    3739#define CONFIGURE_EXTRA_TASK_STACKS         (3 * RTEMS_MINIMUM_STACK_SIZE)
  • testsuites/smptests/smp08/tasks.c

    r9391f6d rad48ebb  
    3939    status = rtems_clock_get_tod( &time );
    4040    if ( time.second >= 35 ) {
    41       locked_printf( "*** END OF SMP08 TEST ***\n" );
     41      TEST_END();
    4242      rtems_test_exit( 0 );
    4343    }
  • testsuites/smptests/smp09/init.c

    r9391f6d rad48ebb  
    1515#include "test_support.h"
    1616#include <rtems/cpuuse.h>
     17
     18const char rtems_test_name[] = "SMP 9";
    1719
    1820volatile int killtime;
     
    3739  rtems_status_code  status;
    3840
     41  TEST_BEGIN();
     42
    3943  locked_print_initialize();
    40   locked_printf( "\n\n*** TEST SMP09 ***\n" );
    4144
    4245  for ( killtime=0; killtime<1000000; killtime++ )
     
    6972  rtems_cpu_usage_report();
    7073
    71   locked_printf( "*** END OF TEST SMP09 ***\n" );
     74  TEST_END();
    7275  rtems_test_exit(0);
    7376}
     
    8386#define CONFIGURE_MAXIMUM_TASKS            \
    8487    (1 + CONFIGURE_SMP_MAXIMUM_PROCESSORS)
     88#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     89
    8590#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    8691
  • testsuites/smptests/smpaffinity01/init.c

    r9391f6d rad48ebb  
    1515
    1616#include "tmacros.h"
     17
     18const char rtems_test_name[] = "SMPAFFINITY 1";
    1719
    1820#if defined(__RTEMS_HAVE_SYS_CPUSET_H__)
     
    210212  int                  sc;
    211213
    212   puts( "\n\n*** SMP AFFINITY 1 ***" );
     214  TEST_BEGIN();
    213215
    214216  /* Initialize thread id */
     
    220222  Validate_affinity();
    221223
    222   puts( "*** END OF SMP AFFINITY TEST 1 ***" );
     224  TEST_END();
    223225  rtems_test_exit(0);
    224226}
     
    227229static void Init(rtems_task_argument arg)
    228230{
    229   puts( "\n\n*** SMP AFFINITY TEST 1 ***" );
     231  TEST_BEGIN();
    230232  puts( " Affinity NOT Supported");
    231   puts( "*** END OF SMP AFFINITY TEST 1 ***" );
     233  TEST_END();
    232234  rtems_test_exit(0);
    233235}
     
    243245#define CONFIGURE_MAXIMUM_TASKS         (NUM_CPUS*2)
    244246
     247#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     248
    245249#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    246250
  • testsuites/smptests/smpatomic01/init.c

    r9391f6d rad48ebb  
    2626
    2727#include "tmacros.h"
     28
     29const char rtems_test_name[] = "SMPATOMIC 1";
    2830
    2931#define MASTER_PRIORITY 1
     
    622624static void Init(rtems_task_argument arg)
    623625{
    624   puts("\n\n*** TEST SMPATOMIC 1 ***");
     626  TEST_BEGIN();
    625627
    626628  simple_tests();
     
    628630  test();
    629631
    630   puts("*** END OF TEST SMPATOMIC 1 ***");
    631 
     632  TEST_END();
    632633  rtems_test_exit(0);
    633634}
     
    648649#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_DEFAULT_ATTRIBUTES
    649650
     651#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     652
    650653#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    651654
  • testsuites/smptests/smpfatal01/init.c

    r9391f6d rad48ebb  
    1818
    1919#include <rtems.h>
     20#include <rtems/test.h>
    2021#include <rtems/score/percpu.h>
    2122#include <rtems/score/smpimpl.h>
     
    2324#include <assert.h>
    2425#include <stdlib.h>
     26
     27const char rtems_test_name[] = "SMPFATAL 1";
    2528
    2629#define MAX_CPUS 32
     
    3134{
    3235  assert(0);
    33 }
    34 
    35 static void end_of_test(void)
    36 {
    37   printk( "*** END OF TEST SMPFATAL 1 ***\n" );
    3836}
    3937
     
    6058      }
    6159
    62       end_of_test();
     60      rtems_test_endk();
    6361    }
    6462  }
     
    7573  uint32_t cpu;
    7674
    77   printk("\n\n*** TEST SMPFATAL 1 ***\n");
     75  rtems_test_begink();
    7876
    7977  assert(rtems_configuration_get_maximum_processors() == MAX_CPUS);
     
    103101    per_cpu->state = PER_CPU_STATE_SHUTDOWN;
    104102  } else {
    105     end_of_test();
     103    rtems_test_endk();
    106104    exit(0);
    107105  }
     
    116114  { .initialization_entry = test_driver_init }
    117115
    118 #define CONFIGURE_INITIAL_EXTENSIONS { .fatal = fatal_extension }
     116#define CONFIGURE_INITIAL_EXTENSIONS \
     117  { .fatal = fatal_extension }, \
     118  RTEMS_TEST_INITIAL_EXTENSION
    119119
    120120#define CONFIGURE_SMP_APPLICATION
  • testsuites/smptests/smpfatal02/init.c

    r9391f6d rad48ebb  
    1818
    1919#include <rtems.h>
     20#include <rtems/test.h>
    2021#include <rtems/score/percpu.h>
    2122#include <rtems/score/smpimpl.h>
     
    2324#include <assert.h>
    2425#include <stdlib.h>
     26
     27const char rtems_test_name[] = "SMPFATAL 2";
    2528
    2629#define MAX_CPUS 32
     
    3134{
    3235  assert(0);
    33 }
    34 
    35 static void end_of_test(void)
    36 {
    37   printk( "*** END OF TEST SMPFATAL 2 ***\n" );
    3836}
    3937
     
    6563      }
    6664
    67       end_of_test();
     65      rtems_test_endk();
    6866    } else {
    6967      assert(source == RTEMS_FATAL_SOURCE_SMP);
     
    8381  uint32_t cpu;
    8482
    85   printk("\n\n*** TEST SMPFATAL 2 ***\n");
     83  rtems_test_begink();
    8684
    8785  assert(rtems_configuration_get_maximum_processors() == MAX_CPUS);
     
    108106    rtems_fatal(RTEMS_FATAL_SOURCE_APPLICATION, 0xdeadbeef);
    109107  } else {
    110     end_of_test();
     108    rtems_test_endk();
    111109    exit(0);
    112110  }
     
    121119  { .initialization_entry = test_driver_init }
    122120
    123 #define CONFIGURE_INITIAL_EXTENSIONS { .fatal = fatal_extension }
     121#define CONFIGURE_INITIAL_EXTENSIONS \
     122  { .fatal = fatal_extension }, \
     123  RTEMS_TEST_INITIAL_EXTENSION
    124124
    125125#define CONFIGURE_SMP_APPLICATION
  • testsuites/smptests/smpfatal03/init.c

    r9391f6d rad48ebb  
    1919#include <rtems.h>
    2020#include <rtems/counter.h>
     21#include <rtems/test.h>
    2122#include <rtems/score/smpbarrier.h>
    2223#include <rtems/score/smpimpl.h>
     
    2627#include <stdlib.h>
    2728
     29const char rtems_test_name[] = "SMPFATAL 3";
     30
    2831#define CPU_COUNT 2
    2932
     
    3134
    3235static SMP_barrier_Control barrier = SMP_BARRIER_CONTROL_INITIALIZER;
    33 
    34 static void end_of_test(void)
    35 {
    36   printk( "*** END OF TEST SMPFATAL 3 ***\n" );
    37 }
    3836
    3937static void acquire_giant_and_fatal_task(rtems_task_argument arg)
     
    7169  uint32_t cpu_count = rtems_smp_get_processor_count();
    7270
    73   printk("\n\n*** TEST SMPFATAL 3 ***\n");
     71  rtems_test_begink();
    7472
    7573  main_cpu = self;
     
    9492    wait_for_giant();
    9593  } else {
    96     end_of_test();
     94    rtems_test_endk();
    9795    exit(0);
    9896  }
     
    117115      assert(code == SMP_FATAL_SHUTDOWN);
    118116
    119       end_of_test();
     117      rtems_test_endk();
    120118    } else {
    121119      assert(source == RTEMS_FATAL_SOURCE_APPLICATION);
     
    128126#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    129127
    130 #define CONFIGURE_INITIAL_EXTENSIONS { .fatal = fatal_extension }
     128#define CONFIGURE_INITIAL_EXTENSIONS \
     129  { .fatal = fatal_extension }, \
     130  RTEMS_TEST_INITIAL_EXTENSION
    131131
    132132#define CONFIGURE_SMP_APPLICATION
  • testsuites/smptests/smpload01/init.c

    r9391f6d rad48ebb  
    2121#include <rtems.h>
    2222#include <rtems/profiling.h>
     23
     24const char rtems_test_name[] = "SMPLOAD 1";
    2325
    2426#define CPU_COUNT 32
     
    113115static void Init(rtems_task_argument arg)
    114116{
    115   puts("\n\n*** TEST SMPLOAD 1 ***");
     117  TEST_BEGIN();
    116118
    117119  test();
    118120
    119   puts("*** END OF TEST SMPLOAD 1 ***");
    120 
     121  TEST_END();
    121122  rtems_test_exit(0);
    122123}
  • testsuites/smptests/smplock01/init.c

    r9391f6d rad48ebb  
    2424#include "tmacros.h"
    2525
     26const char rtems_test_name[] = "SMPLOCK 1";
     27
    2628#define TASK_PRIORITY 1
    2729
     
    332334static void Init(rtems_task_argument arg)
    333335{
    334   puts("\n\n*** TEST SMPLOCK 1 ***");
     336  TEST_BEGIN();
    335337
    336338  test();
    337339
    338   puts("*** END OF TEST SMPLOCK 1 ***");
    339 
     340  TEST_END();
    340341  rtems_test_exit(0);
    341342}
     
    358359#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_DEFAULT_ATTRIBUTES
    359360
     361#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     362
    360363#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    361364
  • testsuites/smptests/smpmigration01/init.c

    r9391f6d rad48ebb  
    2424#include <inttypes.h>
    2525
     26const char rtems_test_name[] = "SMPMIGRATION 1";
     27
    2628#define CPU_COUNT 2
    2729
     
    221223static void Init(rtems_task_argument arg)
    222224{
    223   puts("\n\n*** TEST SMPMIGRATION 1 ***");
     225  TEST_BEGIN();
    224226
    225227  if (rtems_smp_get_processor_count() >= 2) {
     
    227229  }
    228230
    229   puts("*** END OF TEST SMPMIGRATION 1 ***");
    230 
     231  TEST_END();
    231232  rtems_test_exit(0);
    232233}
     
    243244#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
    244245
     246#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     247
    245248#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    246249
  • testsuites/smptests/smppsxaffinity01/init.c

    r9391f6d rad48ebb  
    1818#include <pthread.h>
    1919#include <sched.h>
     20
     21const char rtems_test_name[] = "SMPPSXAFFINITY 1";
    2022
    2123#if HAVE_DECL_PTHREAD_GETAFFINITY_NP
     
    130132)
    131133{
    132   puts( "\n\n*** SMP POSIX AFFINITY ATTRIBUTE TEST 1 ***" );
     134  TEST_BEGIN();
    133135
    134136  /* Initialize thread id */
     
    139141  Validate_attr();
    140142
    141   puts( "*** END OF SMP POSIX AFFINITY ATTRIBUTE TEST 1 ***" );
     143  TEST_END();
    142144  rtems_test_exit(0);
    143145}
     
    148150)
    149151{
    150   puts( "\n\n*** SMP POSIX AFFINITY ATTRIBUTE TEST 1 ***" );
     152  TEST_BEGIN();
    151153  puts( " POSIX Affinity Methods NOT Supported");
    152   puts( "*** END OF SMP POSIX AFFINITY ATTRIBUTE TEST 1 ***" );
     154  TEST_END();
    153155  rtems_test_exit(0);
    154156}
     
    167169#define CONFIGURE_MAXIMUM_POSIX_THREADS  1
    168170
     171#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     172
    169173#define CONFIGURE_POSIX_INIT_THREAD_TABLE
    170174
  • testsuites/smptests/smppsxaffinity02/init.c

    r9391f6d rad48ebb  
    2121#include <sched.h>
    2222
     23const char rtems_test_name[] = "SMPPSXAFFINITY 2";
     24
    2325#if HAVE_DECL_PTHREAD_GETAFFINITY_NP
    2426
     
    197199)
    198200{
    199   puts( "\n\n*** SMP POSIX AFFINITY ATTRIBUTE TEST 2 ***" );
     201  TEST_BEGIN();
    200202
    201203  /* Initialize thread id */
     
    206208  Validate_affinity();
    207209
    208   puts( "*** END OF SMP POSIX AFFINITY ATTRIBUTE TEST 2 ***" );
     210  TEST_END();
    209211  rtems_test_exit(0);
    210212}
     
    215217)
    216218{
    217   puts( "\n\n*** SMP POSIX AFFINITY ATTRIBUTE TEST 2 ***" );
     219  TEST_BEGIN();
    218220  puts( " Affinity NOT Supported");
    219   puts( "*** END OF SMP POSIX AFFINITY ATTRIBUTE TEST 2 ***" );
     221  TEST_END();
    220222  rtems_test_exit(0);
    221223}
  • testsuites/smptests/smppsxsignal01/init.c

    r9391f6d rad48ebb  
    2121#include <pthread.h>
    2222#include <signal.h>
     23
     24const char rtems_test_name[] = "SMPPSXSIGNAL 1";
    2325
    2426#define TEST_SIGNAL SIGUSR1
     
    162164static void *POSIX_Init(void *arg)
    163165{
    164   puts("\n\n*** TEST SMPPSXSIGNAL 1 ***");
     166  TEST_BEGIN();
    165167
    166168  if (rtems_smp_get_processor_count() >= 2) {
     
    168170  }
    169171
    170   puts("*** END OF TEST SMPPSXSIGNAL 1 ***");
    171 
     172  TEST_END();
    172173  rtems_test_exit(0);
    173174}
     
    180181#define CONFIGURE_SMP_MAXIMUM_PROCESSORS 2
    181182
     183#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     184
    182185#define CONFIGURE_MAXIMUM_POSIX_THREADS 2
    183186
  • testsuites/smptests/smpschedule01/init.c

    r9391f6d rad48ebb  
    2121#include "tmacros.h"
    2222
     23const char rtems_test_name[] = "SMPSCHEDULE 1";
     24
    2325#define CPU_COUNT 2
    2426
     
    181183static void Init(rtems_task_argument arg)
    182184{
    183   puts("\n\n*** TEST SMPSCHEDULE 1 ***");
     185  TEST_BEGIN();
    184186
    185187  test();
    186188
    187   puts("*** END OF TEST SMPSCHEDULE 1 ***");
    188 
     189  TEST_END();
    189190  rtems_test_exit(0);
    190191}
     
    203204#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_DEFAULT_ATTRIBUTES
    204205
     206#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     207
    205208#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    206209
  • testsuites/smptests/smpsignal01/init.c

    r9391f6d rad48ebb  
    1818
    1919#include "tmacros.h"
     20
     21const char rtems_test_name[] = "SMPSIGNAL 1";
    2022
    2123#define TEST_SIGNAL RTEMS_SIGNAL_0
     
    163165static void Init(rtems_task_argument arg)
    164166{
    165   puts("\n\n*** TEST SMPSIGNAL 1 ***");
     167  TEST_BEGIN();
    166168
    167169  if (rtems_smp_get_processor_count() >= 2) {
     
    169171  }
    170172
    171   puts("*** END OF TEST SMPSIGNAL 1 ***");
    172 
     173  TEST_END();
    173174  rtems_test_exit(0);
    174175}
     
    183184#define CONFIGURE_MAXIMUM_TASKS 2
    184185
     186#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     187
    185188#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    186189
  • testsuites/smptests/smpswitchextension01/init.c

    r9391f6d rad48ebb  
    2222#include <inttypes.h>
    2323
     24const char rtems_test_name[] = "SMPSWITCHEXTENSION 1";
     25
    2426#define CPU_COUNT 2
    2527
     
    222224static void Init(rtems_task_argument arg)
    223225{
    224   puts("\n\n*** TEST SMPSWITCHEXTENSION 1 ***");
     226  TEST_BEGIN();
    225227
    226228  if (rtems_smp_get_processor_count() >= 2) {
     
    228230  }
    229231
    230   puts("*** END OF TEST SMPSWITCHEXTENSION 1 ***");
    231 
     232  TEST_END();
    232233  rtems_test_exit(0);
    233234}
     
    244245#define CONFIGURE_MAXIMUM_USER_EXTENSIONS EXTENSION_COUNT
    245246
     247#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     248
    246249#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    247250
  • testsuites/smptests/smpunsupported01/init.c

    r9391f6d rad48ebb  
    1818
    1919#include "tmacros.h"
     20
     21const char rtems_test_name[] = "SMPUNSUPPORTED 1";
    2022
    2123static void some_task(rtems_task_argument arg)
     
    7880static void Init(rtems_task_argument arg)
    7981{
    80   puts("\n\n*** TEST SMPUNSUPPORTED 1 ***");
     82  TEST_BEGIN();
    8183
    8284  test();
    8385
    84   puts("*** END OF TEST SMPUNSUPPORTED 1 ***");
    85 
     86  TEST_END();
    8687  rtems_test_exit(0);
    8788}
     
    9697#define CONFIGURE_MAXIMUM_TASKS 2
    9798
     99#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
     100
    98101#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    99102
Note: See TracChangeset for help on using the changeset viewer.