summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spfatal13/testcase.h
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/spfatal13/testcase.h
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/spfatal13/testcase.h')
-rw-r--r--testsuites/sptests/spfatal13/testcase.h28
1 files changed, 28 insertions, 0 deletions
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 */
+}