diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-10 16:31:43 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-17 09:17:36 +0100 |
commit | 9391f6d6637c752046cdfd89ae2eeea147496e44 (patch) | |
tree | fe6ad09c222cdf0489414d4a5a644b10845de333 /testsuites/samples/iostream | |
parent | sapi: Add <rtems/test.h> (diff) | |
download | rtems-9391f6d6637c752046cdfd89ae2eeea147496e44.tar.bz2 |
tests/samples: Use <rtems/test.h>
Diffstat (limited to 'testsuites/samples/iostream')
-rw-r--r-- | testsuites/samples/iostream/init.cc | 6 | ||||
-rw-r--r-- | testsuites/samples/iostream/system.h | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/testsuites/samples/iostream/init.cc b/testsuites/samples/iostream/init.cc index c3dbec403e..770d26f0c3 100644 --- a/testsuites/samples/iostream/init.cc +++ b/testsuites/samples/iostream/init.cc @@ -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 ); } diff --git a/testsuites/samples/iostream/system.h b/testsuites/samples/iostream/system.h index cf144cce4b..ebe538029e 100644 --- a/testsuites/samples/iostream/system.h +++ b/testsuites/samples/iostream/system.h @@ -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 */ |