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

This commit is contained in:
Sebastian Huber
2014-03-10 16:31:43 +01:00
parent 840ae715a9
commit 9391f6d663
26 changed files with 95 additions and 25 deletions

View File

@@ -29,6 +29,8 @@
#include <stdlib.h>
const char rtems_test_name[] = "HELLO WORLD";
rtems_task Init(
rtems_task_argument ignored
)
@@ -36,9 +38,9 @@ rtems_task Init(
#if BSP_SMALL_MEMORY
printf ("NO STDC++. MEMORY TOO SMALL");
#else
std::cout << "\n\n*** HELLO WORLD TEST ***" << std::endl;
std::cout << "\n\n*** " << rtems_test_name << " TEST ***" << std::endl;
std::cout << "Hello World" << std::endl;
std::cout << "*** END OF HELLO WORLD TEST ***" << std::endl;
std::cout << "*** END OF " << rtems_test_name << " TEST ***" << std::endl;
#endif
exit( 0 );
}

View File

@@ -12,6 +12,7 @@
*/
#include <rtems.h>
#include <rtems/test.h>
/* configuration information */
@@ -33,6 +34,8 @@
/* Only remove when this macro is removed from confdefs.h. It tests it. */
#define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
#include <rtems/confdefs.h>
/* end of include file */