Ignore:
Timestamp:
Jul 19, 2013, 8:12:13 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
1e4f08b4
Parents:
2f589cc
git-author:
Sebastian Huber <sebastian.huber@…> (07/19/13 08:12:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/22/13 14:45:58)
Message:

smptests: Be successful on one processor

File:
1 edited

Legend:

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

    r2f589cc r57c88056  
    1818volatile bool TSRFired = false;
    1919rtems_id      Semaphore;
     20
     21static void success(void)
     22{
     23  locked_printf( "*** END OF TEST SMP07 ***\n" );
     24  rtems_test_exit( 0 );
     25}
    2026
    2127rtems_task Test_task(
     
    8490  locked_printf( "\n\n*** TEST SMP07 ***\n" );
    8591
     92  if ( rtems_smp_get_processor_count() == 1 ) {
     93    success();
     94  }
     95
    8696  /* Create/verify semaphore */
    8797  status = rtems_semaphore_create(
     
    148158
    149159  /* End the program */
    150   locked_printf( "*** END OF TEST SMP07 ***\n" );
    151   rtems_test_exit(0);
     160  success();
    152161}
    153162
Note: See TracChangeset for help on using the changeset viewer.