summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpfatal01/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 08:10:19 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 09:17:36 +0100
commitad48ebbfc7e56cfdaf33e7a77a314171d6455511 (patch)
treec150e12d845b5fab5cc689e150068b9b9d085b38 /testsuites/smptests/smpfatal01/init.c
parenttests/samples: Use <rtems/test.h> (diff)
downloadrtems-ad48ebbfc7e56cfdaf33e7a77a314171d6455511.tar.bz2
tests/smptests: Use <rtems/test.h>
Diffstat (limited to '')
-rw-r--r--testsuites/smptests/smpfatal01/init.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/testsuites/smptests/smpfatal01/init.c b/testsuites/smptests/smpfatal01/init.c
index c78b29fbe8..b5687103a0 100644
--- a/testsuites/smptests/smpfatal01/init.c
+++ b/testsuites/smptests/smpfatal01/init.c
@@ -17,12 +17,15 @@
#endif
#include <rtems.h>
+#include <rtems/test.h>
#include <rtems/score/percpu.h>
#include <rtems/score/smpimpl.h>
#include <assert.h>
#include <stdlib.h>
+const char rtems_test_name[] = "SMPFATAL 1";
+
#define MAX_CPUS 32
static uint32_t main_cpu;
@@ -32,11 +35,6 @@ static void Init(rtems_task_argument arg)
assert(0);
}
-static void end_of_test(void)
-{
- printk( "*** END OF TEST SMPFATAL 1 ***\n" );
-}
-
static void fatal_extension(
rtems_fatal_source source,
bool is_internal,
@@ -59,7 +57,7 @@ static void fatal_extension(
assert(state == PER_CPU_STATE_SHUTDOWN);
}
- end_of_test();
+ rtems_test_endk();
}
}
}
@@ -74,7 +72,7 @@ static rtems_status_code test_driver_init(
uint32_t cpu_count = rtems_smp_get_processor_count();
uint32_t cpu;
- printk("\n\n*** TEST SMPFATAL 1 ***\n");
+ rtems_test_begink();
assert(rtems_configuration_get_maximum_processors() == MAX_CPUS);
@@ -102,7 +100,7 @@ static rtems_status_code test_driver_init(
per_cpu->state = PER_CPU_STATE_SHUTDOWN;
} else {
- end_of_test();
+ rtems_test_endk();
exit(0);
}
@@ -115,7 +113,9 @@ static rtems_status_code test_driver_init(
#define CONFIGURE_APPLICATION_EXTRA_DRIVERS \
{ .initialization_entry = test_driver_init }
-#define CONFIGURE_INITIAL_EXTENSIONS { .fatal = fatal_extension }
+#define CONFIGURE_INITIAL_EXTENSIONS \
+ { .fatal = fatal_extension }, \
+ RTEMS_TEST_INITIAL_EXTENSION
#define CONFIGURE_SMP_APPLICATION