diff options
Diffstat (limited to 'testsuites/sptests/spfatal21')
-rw-r--r-- | testsuites/sptests/spfatal21/Makefile.am | 21 | ||||
-rw-r--r-- | testsuites/sptests/spfatal21/spfatal21.doc | 19 | ||||
-rw-r--r-- | testsuites/sptests/spfatal21/spfatal21.scn | 3 | ||||
-rw-r--r-- | testsuites/sptests/spfatal21/testcase.h | 34 |
4 files changed, 0 insertions, 77 deletions
diff --git a/testsuites/sptests/spfatal21/Makefile.am b/testsuites/sptests/spfatal21/Makefile.am deleted file mode 100644 index 3a2439ac80..0000000000 --- a/testsuites/sptests/spfatal21/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -rtems_tests_PROGRAMS = spfatal21 -spfatal21_SOURCES = ../spfatal_support/init.c \ - ../spfatal_support/system.h ../../support/src/test_support.c testcase.h - -dist_rtems_tests_DATA = spfatal21.scn -dist_rtems_tests_DATA += spfatal21.doc - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../automake/compile.am -include $(top_srcdir)/../automake/leaf.am - -AM_CPPFLAGS += -I$(top_srcdir)/../support/include - -LINK_OBJS = $(spfatal21_OBJECTS) -LINK_LIBS = $(spfatal21_LDLIBS) - -spfatal21$(EXEEXT): $(spfatal21_OBJECTS) $(spfatal21_DEPENDENCIES) - @rm -f spfatal21$(EXEEXT) - $(make-exe) - -include $(top_srcdir)/../automake/local.am diff --git a/testsuites/sptests/spfatal21/spfatal21.doc b/testsuites/sptests/spfatal21/spfatal21.doc deleted file mode 100644 index ba1e65c0f2..0000000000 --- a/testsuites/sptests/spfatal21/spfatal21.doc +++ /dev/null @@ -1,19 +0,0 @@ -# COPYRIGHT (c) 1989-2010. -# 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.com/license/LICENSE. -# - -This file describes the directives and concepts tested by this test set. - -test set name: spfatal21 - -directives: - - malloc_sbrk_initialize - -concepts: - -+ exercise fatal error when sbrk fails to extend memory on the initial call. diff --git a/testsuites/sptests/spfatal21/spfatal21.scn b/testsuites/sptests/spfatal21/spfatal21.scn deleted file mode 100644 index 1ea32a5d3f..0000000000 --- a/testsuites/sptests/spfatal21/spfatal21.scn +++ /dev/null @@ -1,3 +0,0 @@ -*** TEST FATAL FATAL 21 *** -Fatal error (sbrk during init fails) hit -*** END OF TEST FATAL 21 *** diff --git a/testsuites/sptests/spfatal21/testcase.h b/testsuites/sptests/spfatal21/testcase.h deleted file mode 100644 index 788f06be5e..0000000000 --- a/testsuites/sptests/spfatal21/testcase.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2012. - * 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.com/license/LICENSE. - */ - -#define FATAL_ERROR_TEST_NAME "FATAL 21" -#define FATAL_ERROR_DESCRIPTION "sbrk during init fails" -#define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_RTEMS_API -#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE -#define FATAL_ERROR_EXPECTED_ERROR RTEMS_NO_MEMORY - -#include <rtems/libcsupport.h> -#include <rtems/malloc.h> -#include <unistd.h> - -/* Safe information on real heap */ -extern rtems_malloc_sbrk_functions_t *rtems_malloc_sbrk_helpers; -extern rtems_malloc_sbrk_functions_t rtems_malloc_sbrk_helpers_table; - -void * sbrk(ptrdiff_t incr) -{ - return (void *) -1; -} - -void force_error() -{ - rtems_malloc_sbrk_helpers = &rtems_malloc_sbrk_helpers_table; - - RTEMS_Malloc_Initialize( NULL, 0, 64 ); -} |