diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-25 08:06:21 +0100 |
commit | 6c0301daad418d362f71eaa7e5c4b6a2d948fc50 (patch) | |
tree | d08b9e09d3c69ca35f96c9f1eeff8eb244df92ed /testsuites/sptests/sptls02 | |
parent | tests/psxtests: Use <rtems/test.h> (diff) | |
download | rtems-6c0301daad418d362f71eaa7e5c4b6a2d948fc50.tar.bz2 |
tests/sptests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/sptests/sptls02')
-rw-r--r-- | testsuites/sptests/sptls02/init.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/testsuites/sptests/sptls02/init.cc b/testsuites/sptests/sptls02/init.cc index 5902a77a5f..b15e35856f 100644 --- a/testsuites/sptests/sptls02/init.cc +++ b/testsuites/sptests/sptls02/init.cc @@ -22,8 +22,11 @@ #include <rtems.h> #include <rtems/libcsupport.h> +#define TESTS_USE_PRINTF #include "tmacros.h" +const char rtems_test_name[] = "SPTLS 2"; + static thread_local long i123 = 123; alignas(256) static thread_local long a256 = 256; @@ -219,7 +222,7 @@ static void testTask() extern "C" void Init(rtems_task_argument arg) { - puts("\n\n*** TEST SPTLS 2 ***"); + TEST_BEGIN(); printf("A::globalCounter() = %li\n", A::globalCounter()); @@ -238,7 +241,7 @@ extern "C" void Init(rtems_task_argument arg) rtems_test_assert(rtems_resource_snapshot_check(&snapshot)); - puts("*** END OF TEST SPTLS 2 ***"); + TEST_END(); exit(0); } @@ -249,6 +252,8 @@ extern "C" void Init(rtems_task_argument arg) #define CONFIGURE_MAXIMUM_TASKS 2 #define CONFIGURE_MAXIMUM_SEMAPHORES 3 +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_MAXIMUM_POSIX_KEYS 2 |