tests/samples: Use <rtems/test.h>

This commit is contained in:
Sebastian Huber
2014-03-17 09:17:36 +01:00
parent 840ae715a9
commit 9391f6d663
26 changed files with 95 additions and 25 deletions
+5 -3
View File
@@ -23,6 +23,7 @@
*/
#include <rtems.h>
#include <rtems/test.h>
#include <cstdio>
#include <cstdlib>
@@ -31,6 +32,8 @@
#include <iostream>
#endif
const char rtems_test_name[] = "CONSTRUCTOR/DESTRUCTOR";
extern "C"
{
#include <tmacros.h>
@@ -176,12 +179,11 @@ rtems_task main_task(
rtems_task_argument
)
{
printf( "\n\n*** CONSTRUCTOR/DESTRUCTOR TEST ***\n" );
TEST_BEGIN();
cdtest();
printf( "*** END OF CONSTRUCTOR/DESTRUCTOR TEST ***\n\n\n" );
TEST_END();
printf( "*** TESTING C++ EXCEPTIONS ***\n\n" );
+3
View File
@@ -12,6 +12,7 @@
*/
#include <rtems.h>
#include <rtems/test.h>
/* functions */
@@ -33,6 +34,8 @@ rtems_task main_task(
#define CONFIGURE_INIT_TASK_ENTRY_POINT main_task
#define CONFIGURE_INIT_TASK_NAME rtems_build_name( 'C', 'T', 'O', 'R' )
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
#include <rtems/confdefs.h>
/* end of include file */