summaryrefslogtreecommitdiff
path: root/testsuites
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/sperror03/init.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/testsuites/sptests/sperror03/init.c b/testsuites/sptests/sperror03/init.c
index f4323a5001..ad42d96a47 100644
--- a/testsuites/sptests/sperror03/init.c
+++ b/testsuites/sptests/sperror03/init.c
@@ -16,8 +16,7 @@
const char rtems_test_name[] = "SPERROR 3";
-/* forward declarations to avoid warnings */
-rtems_task Init(rtems_task_argument argument);
+static const char fmt[] = "Dummy panic\n";
static void fatal_extension(
rtems_fatal_source source,
@@ -26,24 +25,20 @@ static void fatal_extension(
)
{
if (
- source == RTEMS_FATAL_SOURCE_EXIT
+ source == RTEMS_FATAL_SOURCE_PANIC
&& !always_set_to_false
- && error == 0
+ && error == (rtems_fatal_code) fmt
) {
TEST_END();
}
}
-rtems_task Init(
+static rtems_task Init(
rtems_task_argument argument
)
{
TEST_BEGIN();
-
- rtems_panic(
- "Dummy panic\n"
- );
-
+ rtems_panic( fmt );
rtems_test_assert(0);
}