2010-03-10 Joel Sherrill <joel.sherrill@oarcorp.com>

* Makefile.am, configure.ac: Add new fatal error for configuring
	unlimited and maximum of 0.
	* spfatal13/.cvsignore, spfatal13/Makefile.am, spfatal13/spfatal13.doc,
	spfatal13/spfatal13.scn, spfatal13/testcase.h: New files.
This commit is contained in:
Joel Sherrill
2010-03-10 18:14:43 +00:00
parent 543f17b391
commit 1f51923f59
8 changed files with 91 additions and 1 deletions
+7
View File
@@ -1,3 +1,10 @@
2010-03-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add new fatal error for configuring
unlimited and maximum of 0.
* spfatal13/.cvsignore, spfatal13/Makefile.am, spfatal13/spfatal13.doc,
spfatal13/spfatal13.scn, spfatal13/testcase.h: New files.
2010-01-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp43/init.c: Fix warning.
+1 -1
View File
@@ -17,7 +17,7 @@ SUBDIRS = \
spchain spclockget spcoverage spobjgetnext spnotepad01 spprintk spsize \
spstkalloc spthreadq01 spwatchdog spwkspace \
spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 spfatal07 \
spfatal08 spfatal09 spfatal10 spfatal11 spfatal12 \
spfatal08 spfatal09 spfatal10 spfatal11 spfatal12 spfatal13 \
spintrcritical01 spintrcritical02 spintrcritical03 spintrcritical04 \
spintrcritical05 spintrcritical06 spintrcritical07 spintrcritical08 \
spintrcritical09 spintrcritical10 spintrcritical11 spintrcritical12 \
+1
View File
@@ -110,6 +110,7 @@ spfatal09/Makefile
spfatal10/Makefile
spfatal11/Makefile
spfatal12/Makefile
spfatal13/Makefile
spintrcritical01/Makefile
spintrcritical02/Makefile
spintrcritical03/Makefile
+2
View File
@@ -0,0 +1,2 @@
Makefile
Makefile.in
+29
View File
@@ -0,0 +1,29 @@
##
## $Id$
##
MANAGERS = all
rtems_tests_PROGRAMS = spfatal13
spfatal13_SOURCES = ../spfatal_support/init.c ../spfatal_support/system.h \
testcase.h
dist_rtems_tests_DATA = spfatal13.scn
dist_rtems_tests_DATA += spfatal13.doc
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
spfatal13_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
LINK_OBJS = $(spfatal13_OBJECTS) $(spfatal13_LDADD)
LINK_LIBS = $(spfatal13_LDLIBS)
spfatal13$(EXEEXT): $(spfatal13_OBJECTS) $(spfatal13_DEPENDENCIES)
@rm -f spfatal13$(EXEEXT)
$(make-exe)
include $(top_srcdir)/../automake/local.am
@@ -0,0 +1,22 @@
#
# $Id$
#
# 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.com/license/LICENSE.
#
This file describes the directives and concepts tested by this test set.
test set name: fatal 13
directives:
initialization focued on _Objects_Initialize
concepts:
a. Verify that the combination of maximum of 0 and unlimited is
detected.
@@ -0,0 +1 @@
Fatal error (Configuration of unlimited and maximum of 0) hit
+28
View File
@@ -0,0 +1,28 @@
/* Test __assert_func with NULL function name
*
* 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.com/license/LICENSE.
*
* $Id$
*/
#define FATAL_ERROR_TEST_NAME "12"
#define FATAL_ERROR_DESCRIPTION \
"Configuration of unlimited and maximum of 0"
#define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_CORE
#define FATAL_ERROR_EXPECTED_IS_INTERNAL TRUE
#define FATAL_ERROR_EXPECTED_ERROR INTERNAL_ERROR_UNLIMITED_AND_MAXIMUM_IS_0
/*
* Actual object does not matter. Important thing is zero and unlimited.
*/
#define CONFIGURE_MAXIMUM_PARTITIONS rtems_resource_unlimited(0)
void force_error()
{
/* we should not run this far */
}