From 782113767f3e60389423c169f5c337ec3fb50feb Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 Dec 2019 08:53:32 +0100 Subject: score: Remove _Workspace_Allocate_or_fatal_error() This function is unused. Update #3735. --- testsuites/sptests/Makefile.am | 9 --------- testsuites/sptests/configure.ac | 1 - testsuites/sptests/spfatal08/init.c | 31 ------------------------------ testsuites/sptests/spfatal08/spfatal08.doc | 20 ------------------- testsuites/sptests/spfatal08/spfatal08.scn | 3 --- 5 files changed, 64 deletions(-) delete mode 100644 testsuites/sptests/spfatal08/init.c delete mode 100644 testsuites/sptests/spfatal08/spfatal08.doc delete mode 100644 testsuites/sptests/spfatal08/spfatal08.scn (limited to 'testsuites/sptests') diff --git a/testsuites/sptests/Makefile.am b/testsuites/sptests/Makefile.am index f127c2b2e8..1b47cad4a9 100644 --- a/testsuites/sptests/Makefile.am +++ b/testsuites/sptests/Makefile.am @@ -949,15 +949,6 @@ spfatal06_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spfatal06) \ $(support_includes) endif -if TEST_spfatal08 -sp_tests += spfatal08 -sp_screens += spfatal08/spfatal08.scn -sp_docs += spfatal08/spfatal08.doc -spfatal08_SOURCES = spfatal08/init.c -spfatal08_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_spfatal08) \ - $(support_includes) -endif - if TEST_spfatal09 sp_tests += spfatal09 sp_screens += spfatal09/spfatal09.scn diff --git a/testsuites/sptests/configure.ac b/testsuites/sptests/configure.ac index d8816d80f0..e30f96d1c4 100644 --- a/testsuites/sptests/configure.ac +++ b/testsuites/sptests/configure.ac @@ -142,7 +142,6 @@ RTEMS_TEST_CHECK([spfatal03]) RTEMS_TEST_CHECK([spfatal04]) RTEMS_TEST_CHECK([spfatal05]) RTEMS_TEST_CHECK([spfatal06]) -RTEMS_TEST_CHECK([spfatal08]) RTEMS_TEST_CHECK([spfatal09]) RTEMS_TEST_CHECK([spfatal10]) RTEMS_TEST_CHECK([spfatal11]) diff --git a/testsuites/sptests/spfatal08/init.c b/testsuites/sptests/spfatal08/init.c deleted file mode 100644 index 568bdf7dcb..0000000000 --- a/testsuites/sptests/spfatal08/init.c +++ /dev/null @@ -1,31 +0,0 @@ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "../spfatal_support/spfatal.h" - -/* - * Classic API Init task create failure - * - * COPYRIGHT (c) 1989-2008. - * 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. - */ - -#include - -#define FATAL_ERROR_TEST_NAME "8" -#define FATAL_ERROR_DESCRIPTION "Core workspace too small" -#define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_CORE -#define FATAL_ERROR_EXPECTED_ERROR INTERNAL_ERROR_WORKSPACE_ALLOCATION - -static void force_error(void) -{ - _Workspace_Allocate_or_fatal_error( SIZE_MAX ); - /* we will not run this far */ -} - -#include "../spfatal_support/spfatalimpl.h" diff --git a/testsuites/sptests/spfatal08/spfatal08.doc b/testsuites/sptests/spfatal08/spfatal08.doc deleted file mode 100644 index 2da0234005..0000000000 --- a/testsuites/sptests/spfatal08/spfatal08.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: spfatal08 - -directives: - - None specifically - -concepts: - -+ Ensure that the error condition when the workspace provided is too small - is properly treated as a fatal error. diff --git a/testsuites/sptests/spfatal08/spfatal08.scn b/testsuites/sptests/spfatal08/spfatal08.scn deleted file mode 100644 index b06e671f5a..0000000000 --- a/testsuites/sptests/spfatal08/spfatal08.scn +++ /dev/null @@ -1,3 +0,0 @@ -*** TEST FATAL 8 *** -Fatal error (Core workspace too small) hit -*** END OF TEST FATAL 8 *** -- cgit v1.2.3