summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-10 18:14:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-10 18:14:43 +0000
commit1f51923f594fb1be86cb542b629e337b41f890fe (patch)
tree8dd63b8995fe8b560dab8375aab7d78edfaa9073 /testsuites/sptests
parent2010-03-10 Marc Pignat <marc.pignat@hevs.ch> (diff)
downloadrtems-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')
-rw-r--r--testsuites/sptests/ChangeLog7
-rw-r--r--testsuites/sptests/Makefile.am2
-rw-r--r--testsuites/sptests/configure.ac1
-rw-r--r--testsuites/sptests/spfatal13/.cvsignore2
-rw-r--r--testsuites/sptests/spfatal13/Makefile.am29
-rw-r--r--testsuites/sptests/spfatal13/spfatal13.doc22
-rw-r--r--testsuites/sptests/spfatal13/spfatal13.scn1
-rw-r--r--testsuites/sptests/spfatal13/testcase.h28
8 files changed, 91 insertions, 1 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index 550db6ae19..2816584b1a 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -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.
diff --git a/testsuites/sptests/Makefile.am b/testsuites/sptests/Makefile.am
index 3fedb11c4d..9f34253cd9 100644
--- a/testsuites/sptests/Makefile.am
+++ b/testsuites/sptests/Makefile.am
@@ -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 \
diff --git a/testsuites/sptests/configure.ac b/testsuites/sptests/configure.ac
index 721733e6a8..c1473795ba 100644
--- a/testsuites/sptests/configure.ac
+++ b/testsuites/sptests/configure.ac
@@ -110,6 +110,7 @@ spfatal09/Makefile
spfatal10/Makefile
spfatal11/Makefile
spfatal12/Makefile
+spfatal13/Makefile
spintrcritical01/Makefile
spintrcritical02/Makefile
spintrcritical03/Makefile
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 */
+}