mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-24 06:35:36 +08:00
tests/samples: Use <rtems/test.h>
This commit is contained in:
@@ -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" );
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user