forked from Imagelibrary/rtems
tests/samples: Use <rtems/test.h>
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user