Changeset 83a66aa in rtems


Ignore:
Timestamp:
Jan 29, 2008, 9:53:40 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
27d4569
Parents:
8f5b274
Message:

2008-01-29 Joel Sherrill <joel.sherrill@…>

  • support/include/tmacros.h: Add new rtems_test_assert() which exits rather than calling fatal error.
Location:
testsuites
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/ChangeLog

    r8f5b274 r83a66aa  
     12008-01-29      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * support/include/tmacros.h: Add new rtems_test_assert() which exits
     4        rather than calling fatal error.
     5
    162007-12-17      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/support/include/tmacros.h

    r8f5b274 r83a66aa  
    44 *  test suites.
    55 *
    6  *  COPYRIGHT (c) 1989-1999.
     6 *  COPYRIGHT (c) 1989-2008.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    235235
    236236#define task_number( tid ) \
    237   ( rtems_get_index( tid ) - \
    238      rtems_configuration_get_rtems_api_configuration()->number_of_initialization_tasks )
     237  ( rtems_object_id_get_index( tid ) - \
     238      rtems_configuration_get_rtems_api_configuration()-> \
     239        number_of_initialization_tasks )
    239240
    240241static inline uint32_t   get_ticks_per_second( void )
     
    247248#define TICKS_PER_SECOND get_ticks_per_second()
    248249
     250#define rtems_test_assert(__exp) \
     251  if (!(__exp)) { \
     252    printf( "%s: %d %s\n", __FILE__, __LINE__, #__exp ); \
     253    rtems_test_exit(0); \
     254  }
     255
    249256#ifdef __cplusplus
    250257}
Note: See TracChangeset for help on using the changeset viewer.