diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-10 18:14:43 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-10 18:14:43 +0000 |
commit | 1f51923f594fb1be86cb542b629e337b41f890fe (patch) | |
tree | 8dd63b8995fe8b560dab8375aab7d78edfaa9073 /testsuites/sptests/spfatal13 | |
parent | 2010-03-10 Marc Pignat <marc.pignat@hevs.ch> (diff) | |
download | rtems-1f51923f594fb1be86cb542b629e337b41f890fe.tar.bz2 |
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.
Diffstat (limited to 'testsuites/sptests/spfatal13')
-rw-r--r-- | testsuites/sptests/spfatal13/.cvsignore | 2 | ||||
-rw-r--r-- | testsuites/sptests/spfatal13/Makefile.am | 29 | ||||
-rw-r--r-- | testsuites/sptests/spfatal13/spfatal13.doc | 22 | ||||
-rw-r--r-- | testsuites/sptests/spfatal13/spfatal13.scn | 1 | ||||
-rw-r--r-- | testsuites/sptests/spfatal13/testcase.h | 28 |
5 files changed, 82 insertions, 0 deletions
diff --git a/testsuites/sptests/spfatal13/.cvsignore b/testsuites/sptests/spfatal13/.cvsignore new file mode 100644 index 0000000000..282522db03 --- /dev/null +++ b/testsuites/sptests/spfatal13/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/testsuites/sptests/spfatal13/Makefile.am b/testsuites/sptests/spfatal13/Makefile.am new file mode 100644 index 0000000000..5b59400aad --- /dev/null +++ b/testsuites/sptests/spfatal13/Makefile.am @@ -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 diff --git a/testsuites/sptests/spfatal13/spfatal13.doc b/testsuites/sptests/spfatal13/spfatal13.doc new file mode 100644 index 0000000000..95606f693c --- /dev/null +++ b/testsuites/sptests/spfatal13/spfatal13.doc @@ -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. diff --git a/testsuites/sptests/spfatal13/spfatal13.scn b/testsuites/sptests/spfatal13/spfatal13.scn new file mode 100644 index 0000000000..9d0f1dcc92 --- /dev/null +++ b/testsuites/sptests/spfatal13/spfatal13.scn @@ -0,0 +1 @@ +Fatal error (Configuration of unlimited and maximum of 0) hit diff --git a/testsuites/sptests/spfatal13/testcase.h b/testsuites/sptests/spfatal13/testcase.h new file mode 100644 index 0000000000..2f28513205 --- /dev/null +++ b/testsuites/sptests/spfatal13/testcase.h @@ -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 */ +} |