Changeset 0654c588 in rtems for testsuites/support


Ignore:
Timestamp:
Dec 8, 2009, 5:53:04 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
884730c
Parents:
593ae97
Message:

2009-12-08 Joel Sherrill <joel.sherrill@…>

  • support/include/tmacros.h: Use rtems_test_assert() consistently instead of system assert(). rtems_test_assert() is designed to integrate into the RTEMS test suite infrastructure.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/support/include/tmacros.h

    r593ae97 r0654c588  
    2424#include <stdlib.h>
    2525#include <string.h>
    26 #include <assert.h>
    2726#include <rtems/error.h>
    2827#include <rtems/score/thread.h> /*  _Thread_Dispatch_disable_level */
     
    251250
    252251#define rtems_test_assert(__exp) \
    253   if (!(__exp)) { \
    254     printf( "%s: %d %s\n", __FILE__, __LINE__, #__exp ); \
    255     rtems_test_exit(0); \
    256   }
     252  do { \
     253    if (!(__exp)) { \
     254      printf( "%s: %d %s\n", __FILE__, __LINE__, #__exp ); \
     255      rtems_test_exit(0); \
     256    } \
     257  } while (0)
    257258
    258259/*
Note: See TracChangeset for help on using the changeset viewer.