summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spfatal02
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-19 15:30:17 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-26 11:10:21 +0100
commitbc175a1cabdccfc28deee3ae67ff5e9a0b5aef49 (patch)
treed581896d8efcab8b471502a9b79c541363509002 /testsuites/sptests/spfatal02
parentconfig: Clarify the use of pragmas (diff)
downloadrtems-bc175a1cabdccfc28deee3ae67ff5e9a0b5aef49.tar.bz2
Avoid INTERNAL_ERROR_RTEMS_INIT_TASK_ENTRY_IS_NULL
Replace a runtime check with a compile time assertion. This makes the INTERNAL_ERROR_RTEMS_INIT_TASK_ENTRY_IS_NULL obsolete. Update #4181.
Diffstat (limited to 'testsuites/sptests/spfatal02')
-rw-r--r--testsuites/sptests/spfatal02/init.c28
-rw-r--r--testsuites/sptests/spfatal02/spfatal02.doc20
-rw-r--r--testsuites/sptests/spfatal02/spfatal02.scn3
3 files changed, 0 insertions, 51 deletions
diff --git a/testsuites/sptests/spfatal02/init.c b/testsuites/sptests/spfatal02/init.c
deleted file mode 100644
index 2700b4dd50..0000000000
--- a/testsuites/sptests/spfatal02/init.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "../spfatal_support/spfatal.h"
-
-/*
- * Classic API Init task create failure
- */
-
-#define CONFIGURE_INIT_TASK_ENTRY_POINT NULL
-
-#define FATAL_ERROR_TEST_NAME "2"
-#define FATAL_ERROR_DESCRIPTION "Classic API Init task start failure"
-#define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_CORE
-#define FATAL_ERROR_EXPECTED_ERROR \
- INTERNAL_ERROR_RTEMS_INIT_TASK_ENTRY_IS_NULL
-
-static void force_error(void)
-{
-/*
- * Case 2: Null entry
- */
-
- /* we will not run this far */
-}
-
-#include "../spfatal_support/spfatalimpl.h"
diff --git a/testsuites/sptests/spfatal02/spfatal02.doc b/testsuites/sptests/spfatal02/spfatal02.doc
deleted file mode 100644
index 1e62051b52..0000000000
--- a/testsuites/sptests/spfatal02/spfatal02.doc
+++ /dev/null
@@ -1,20 +0,0 @@
-# COPYRIGHT (c) 1989-2009.
-# On-Line Applications Research Corporation (OAR).
-#
-# The license and distribution terms for this file may be
-# found in the file LICENSE in this distribution or at
-# http://www.rtems.org/license/LICENSE.
-#
-
-This file describes the directives and concepts tested by this test set.
-
-test set name: spfatal02
-
-directives:
-
- rtems_task_start for a user initialization task
-
-concepts:
-
-+ Ensure that when rtems_task_start returns an error when creating a Classic
- API user initialization task is properly treated as a fatal error.
diff --git a/testsuites/sptests/spfatal02/spfatal02.scn b/testsuites/sptests/spfatal02/spfatal02.scn
deleted file mode 100644
index a6e6d93501..0000000000
--- a/testsuites/sptests/spfatal02/spfatal02.scn
+++ /dev/null
@@ -1,3 +0,0 @@
-*** TEST FATAL 2 ***
-Fatal error (Classic API Init task start failure) hit
-*** END OF TEST FATAL 2 ***