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:
Joel Sherrill
2009-12-08 17:53:04 +00:00
parent 593ae972fc
commit 0654c588a8
2 changed files with 12 additions and 5 deletions

View File

@@ -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

View File

@@ -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