forked from Imagelibrary/rtems
2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* support/include/tmacros.h: Add service to check status returned by
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <rtems/error.h>
|
||||
#include <rtems/score/thread.h> /* _Thread_Dispatch_disable_level */
|
||||
|
||||
@@ -250,10 +249,12 @@ extern "C" {
|
||||
number_of_initialization_tasks )
|
||||
|
||||
#define rtems_test_assert(__exp) \
|
||||
if (!(__exp)) { \
|
||||
printf( "%s: %d %s\n", __FILE__, __LINE__, #__exp ); \
|
||||
rtems_test_exit(0); \
|
||||
}
|
||||
do { \
|
||||
if (!(__exp)) { \
|
||||
printf( "%s: %d %s\n", __FILE__, __LINE__, #__exp ); \
|
||||
rtems_test_exit(0); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
* Various inttypes.h-stype macros to assist printing
|
||||
|
||||
Reference in New Issue
Block a user