<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-06-21)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>

        * Makefile.am, configure.ac: Add new tests to generate fatal errors in
        rtems_termios_open().
        * spfatal16/.cvsignore, spfatal16/Makefile.am, spfatal16/spfatal16.doc,
        spfatal16/spfatal16.scn, spfatal16/testcase.h, spfatal17/.cvsignore,
        spfatal17/Makefile.am, spfatal17/spfatal17.doc,
        spfatal17/spfatal17.scn, spfatal17/testcase.h, spfatal18/.cvsignore,
        spfatal18/Makefile.am, spfatal18/spfatal18.doc,
        spfatal18/spfatal18.scn, spfatal18/testcase.h, spfatal19/.cvsignore,
        spfatal19/Makefile.am, spfatal19/spfatal19.doc,
        spfatal19/spfatal19.scn, spfatal19/testcase.h: New files.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.380&r2=text&tr2=1.381&diff_format=h">M</a></td><td width='1%'>1.381</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/Makefile.am.diff?r1=text&tr1=1.88&r2=text&tr2=1.89&diff_format=h">M</a></td><td width='1%'>1.89</td><td width='100%'>testsuites/sptests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/configure.ac.diff?r1=text&tr1=1.93&r2=text&tr2=1.94&diff_format=h">M</a></td><td width='1%'>1.94</td><td width='100%'>testsuites/sptests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal16/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal16/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal16/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal16/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal16/spfatal16.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal16/spfatal16.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal16/spfatal16.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal16/spfatal16.scn</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal16/testcase.h?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal16/testcase.h</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal17/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal17/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal17/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal17/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal17/spfatal17.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal17/spfatal17.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal17/spfatal17.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal17/spfatal17.scn</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal17/testcase.h?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal17/testcase.h</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal18/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal18/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal18/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal18/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal18/spfatal18.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal18/spfatal18.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal18/spfatal18.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal18/spfatal18.scn</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal18/testcase.h?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal18/testcase.h</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal19/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal19/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal19/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal19/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal19/spfatal19.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal19/spfatal19.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal19/spfatal19.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal19/spfatal19.scn</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spfatal19/testcase.h?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/spfatal19/testcase.h</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.380 rtems/testsuites/sptests/ChangeLog:1.381
--- rtems/testsuites/sptests/ChangeLog:1.380    Mon Jun 21 20:28:13 2010
+++ rtems/testsuites/sptests/ChangeLog  Mon Jun 21 21:15:40 2010
</font><font color='#997700'>@@ -1,5 +1,18 @@
</font> 2010-06-21        Joel Sherrill <joel.sherrill@oarcorp.com>
 
<font color='#000088'>+   * Makefile.am, configure.ac: Add new tests to generate fatal errors in
+       rtems_termios_open().
+       * spfatal16/.cvsignore, spfatal16/Makefile.am, spfatal16/spfatal16.doc,
+       spfatal16/spfatal16.scn, spfatal16/testcase.h, spfatal17/.cvsignore,
+       spfatal17/Makefile.am, spfatal17/spfatal17.doc,
+       spfatal17/spfatal17.scn, spfatal17/testcase.h, spfatal18/.cvsignore,
+       spfatal18/Makefile.am, spfatal18/spfatal18.doc,
+       spfatal18/spfatal18.scn, spfatal18/testcase.h, spfatal19/.cvsignore,
+       spfatal19/Makefile.am, spfatal19/spfatal19.doc,
+       spfatal19/spfatal19.scn, spfatal19/testcase.h: New files.
+
+2010-06-21     Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font>   * Makefile.am, configure.ac, spfatal_support/init.c,
        spfatal_support/system.h: Add new tests to generate fatal errors in
        open_dev_console().

<font color='#006600'>diff -u rtems/testsuites/sptests/Makefile.am:1.88 rtems/testsuites/sptests/Makefile.am:1.89
--- rtems/testsuites/sptests/Makefile.am:1.88   Mon Jun 21 20:28:13 2010
+++ rtems/testsuites/sptests/Makefile.am        Mon Jun 21 21:15:41 2010
</font><font color='#997700'>@@ -19,7 +19,7 @@
</font>     spstkalloc spthreadq01 spwatchdog spwkspace \
     spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 spfatal07 \
     spfatal08 spfatal09 spfatal10 spfatal11 spfatal12 spfatal13 spfatal14 \
<font color='#880000'>-    spfatal15 \
</font><font color='#000088'>+    spfatal15 spfatal16 spfatal17 spfatal18 spfatal19 spfatal20 \
</font>     spfifo01 spfifo02 spfifo03 spfifo04 spfifo08 \
     spintrcritical01 spintrcritical02 spintrcritical03 spintrcritical04 \
     spintrcritical05 spintrcritical06 spintrcritical07 spintrcritical08 \

<font color='#006600'>diff -u rtems/testsuites/sptests/configure.ac:1.93 rtems/testsuites/sptests/configure.ac:1.94
--- rtems/testsuites/sptests/configure.ac:1.93  Mon Jun 21 20:28:13 2010
+++ rtems/testsuites/sptests/configure.ac       Mon Jun 21 21:15:41 2010
</font><font color='#997700'>@@ -114,6 +114,11 @@
</font> spfatal13/Makefile
 spfatal14/Makefile
 spfatal15/Makefile
<font color='#000088'>+spfatal16/Makefile
+spfatal17/Makefile
+spfatal18/Makefile
+spfatal19/Makefile
+spfatal20/Makefile
</font> spfifo01/Makefile
 spfifo02/Makefile
 spfifo03/Makefile

<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal16/.cvsignore:1.1
--- /dev/null   Mon Jun 21 22:11:33 2010
+++ rtems/testsuites/sptests/spfatal16/.cvsignore       Mon Jun 21 21:15:41 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal16/Makefile.am:1.1
--- /dev/null   Mon Jun 21 22:11:33 2010
+++ rtems/testsuites/sptests/spfatal16/Makefile.am      Mon Jun 21 21:15:42 2010
</font><font color='#997700'>@@ -0,0 +1,29 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = spfatal16
+spfatal16_SOURCES = ../spfatal_support/init.c \
+    ../spfatal_support/consume_sems.c \
+    ../spfatal_support/system.h testcase.h
+
+dist_rtems_tests_DATA = spfatal16.scn
+dist_rtems_tests_DATA += spfatal16.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
+AM_CPPFLAGS += -DSEMAPHORES_REMAINING=5
+
+LINK_OBJS = $(spfatal16_OBJECTS) $(spfatal16_LDADD)
+LINK_LIBS = $(spfatal16_LDLIBS)
+
+spfatal16$(EXEEXT): $(spfatal16_OBJECTS) $(spfatal16_DEPENDENCIES)
+       @rm -f spfatal16$(EXEEXT)
+       $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal16/spfatal16.doc:1.1
--- /dev/null   Mon Jun 21 22:11:34 2010
+++ rtems/testsuites/sptests/spfatal16/spfatal16.doc    Mon Jun 21 21:15:42 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+#
+#  $Id$
+#
+#  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:  spfatal16
+
+directives:
+
+  rtems_termios_open
+
+concepts:
+
++ fatal error for one of the semaphore creates
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal16/spfatal16.scn:1.1
--- /dev/null   Mon Jun 21 22:11:34 2010
+++ rtems/testsuites/sptests/spfatal16/spfatal16.scn    Mon Jun 21 21:15:42 2010
</font><font color='#997700'>@@ -0,0 +1 @@
</font><font color='#000088'>+Fatal error (termios sem create #1) hit
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal16/testcase.h:1.1
--- /dev/null   Mon Jun 21 22:11:34 2010
+++ rtems/testsuites/sptests/spfatal16/testcase.h       Mon Jun 21 21:15:42 2010
</font><font color='#997700'>@@ -0,0 +1,28 @@
</font><font color='#000088'>+/*
+ *  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.
+ *
+ *  $Id$
+ */
+
+/* generate fatal errors in termios.c<span style="background-color: #FF0000"> </span>
+ *    rtems_semaphore_create( rtems_build_name ('T', 'R', 'r', c),...);
+ */
+
+#define FATAL_ERROR_TEST_NAME            "16"
+#define FATAL_ERROR_DESCRIPTION          "termios sem create #1"
+#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
+#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
+#define FATAL_ERROR_EXPECTED_ERROR       RTEMS_TOO_MANY
+
+#define CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS \
+  CONSUME_SEMAPHORE_DRIVERS
+
+void force_error()
+{
+  /* we will not run this far */
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal17/.cvsignore:1.1
--- /dev/null   Mon Jun 21 22:11:34 2010
+++ rtems/testsuites/sptests/spfatal17/.cvsignore       Mon Jun 21 21:15:42 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal17/Makefile.am:1.1
--- /dev/null   Mon Jun 21 22:11:34 2010
+++ rtems/testsuites/sptests/spfatal17/Makefile.am      Mon Jun 21 21:15:42 2010
</font><font color='#997700'>@@ -0,0 +1,29 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = spfatal17
+spfatal17_SOURCES = ../spfatal_support/init.c \
+    ../spfatal_support/consume_sems.c \
+    ../spfatal_support/system.h testcase.h
+
+dist_rtems_tests_DATA = spfatal17.scn
+dist_rtems_tests_DATA += spfatal17.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
+AM_CPPFLAGS += -DSEMAPHORES_REMAINING=4
+
+LINK_OBJS = $(spfatal17_OBJECTS) $(spfatal17_LDADD)
+LINK_LIBS = $(spfatal17_LDLIBS)
+
+spfatal17$(EXEEXT): $(spfatal17_OBJECTS) $(spfatal17_DEPENDENCIES)
+       @rm -f spfatal17$(EXEEXT)
+       $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal17/spfatal17.doc:1.1
--- /dev/null   Mon Jun 21 22:11:34 2010
+++ rtems/testsuites/sptests/spfatal17/spfatal17.doc    Mon Jun 21 21:15:42 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+#
+#  $Id$
+#
+#  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:  spfatal17
+
+directives:
+
+  rtems_termios_open
+
+concepts:
+
++ fatal error for one of the semaphore creates
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal17/spfatal17.scn:1.1
--- /dev/null   Mon Jun 21 22:11:34 2010
+++ rtems/testsuites/sptests/spfatal17/spfatal17.scn    Mon Jun 21 21:15:44 2010
</font><font color='#997700'>@@ -0,0 +1 @@
</font><font color='#000088'>+Fatal error (termios sem create #2) hit
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal17/testcase.h:1.1
--- /dev/null   Mon Jun 21 22:11:34 2010
+++ rtems/testsuites/sptests/spfatal17/testcase.h       Mon Jun 21 21:15:45 2010
</font><font color='#997700'>@@ -0,0 +1,28 @@
</font><font color='#000088'>+/*
+ *  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.
+ *
+ *  $Id$
+ */
+
+/* generate fatal errors in termios.c<span style="background-color: #FF0000"> </span>
+ *    rtems_semaphore_create( rtems_build_name ('T', 'R', 'x', c),...);
+ */
+
+#define FATAL_ERROR_TEST_NAME            "17"
+#define FATAL_ERROR_DESCRIPTION          "termios sem create #2"
+#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
+#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
+#define FATAL_ERROR_EXPECTED_ERROR       RTEMS_TOO_MANY
+
+#define CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS \
+  CONSUME_SEMAPHORE_DRIVERS
+
+void force_error()
+{
+  /* we will not run this far */
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal18/.cvsignore:1.1
--- /dev/null   Mon Jun 21 22:11:34 2010
+++ rtems/testsuites/sptests/spfatal18/.cvsignore       Mon Jun 21 21:15:45 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal18/Makefile.am:1.1
--- /dev/null   Mon Jun 21 22:11:35 2010
+++ rtems/testsuites/sptests/spfatal18/Makefile.am      Mon Jun 21 21:15:45 2010
</font><font color='#997700'>@@ -0,0 +1,29 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = spfatal18
+spfatal18_SOURCES = ../spfatal_support/init.c \
+    ../spfatal_support/consume_sems.c \
+    ../spfatal_support/system.h testcase.h
+
+dist_rtems_tests_DATA = spfatal18.scn
+dist_rtems_tests_DATA += spfatal18.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
+AM_CPPFLAGS += -DSEMAPHORES_REMAINING=3
+
+LINK_OBJS = $(spfatal18_OBJECTS) $(spfatal18_LDADD)
+LINK_LIBS = $(spfatal18_LDLIBS)
+
+spfatal18$(EXEEXT): $(spfatal18_OBJECTS) $(spfatal18_DEPENDENCIES)
+       @rm -f spfatal18$(EXEEXT)
+       $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal18/spfatal18.doc:1.1
--- /dev/null   Mon Jun 21 22:11:35 2010
+++ rtems/testsuites/sptests/spfatal18/spfatal18.doc    Mon Jun 21 21:15:45 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+#
+#  $Id$
+#
+#  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:  spfatal18
+
+directives:
+
+  rtems_termios_open
+
+concepts:
+
++ fatal error for one of the semaphore creates
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal18/spfatal18.scn:1.1
--- /dev/null   Mon Jun 21 22:11:35 2010
+++ rtems/testsuites/sptests/spfatal18/spfatal18.scn    Mon Jun 21 21:15:45 2010
</font><font color='#997700'>@@ -0,0 +1 @@
</font><font color='#000088'>+Fatal error (termios sem create #3) hit
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal18/testcase.h:1.1
--- /dev/null   Mon Jun 21 22:11:35 2010
+++ rtems/testsuites/sptests/spfatal18/testcase.h       Mon Jun 21 21:15:45 2010
</font><font color='#997700'>@@ -0,0 +1,28 @@
</font><font color='#000088'>+/*
+ *  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.
+ *
+ *  $Id$
+ */
+
+/* generate fatal errors in termios.c<span style="background-color: #FF0000"> </span>
+ *    rtems_semaphore_create( rtems_build_name ('T', 'R', 'o', c),...);
+ */
+
+#define FATAL_ERROR_TEST_NAME            "18"
+#define FATAL_ERROR_DESCRIPTION          "termios sem create #3"
+#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
+#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
+#define FATAL_ERROR_EXPECTED_ERROR       RTEMS_TOO_MANY
+
+#define CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS \
+  CONSUME_SEMAPHORE_DRIVERS
+
+void force_error()
+{
+  /* we will not run this far */
+}
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal19/.cvsignore:1.1
--- /dev/null   Mon Jun 21 22:11:35 2010
+++ rtems/testsuites/sptests/spfatal19/.cvsignore       Mon Jun 21 21:15:46 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal19/Makefile.am:1.1
--- /dev/null   Mon Jun 21 22:11:35 2010
+++ rtems/testsuites/sptests/spfatal19/Makefile.am      Mon Jun 21 21:15:46 2010
</font><font color='#997700'>@@ -0,0 +1,29 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = spfatal19
+spfatal19_SOURCES = ../spfatal_support/init.c \
+    ../spfatal_support/consume_sems.c \
+    ../spfatal_support/system.h testcase.h
+
+dist_rtems_tests_DATA = spfatal19.scn
+dist_rtems_tests_DATA += spfatal19.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
+AM_CPPFLAGS += -DSEMAPHORES_REMAINING=2
+
+LINK_OBJS = $(spfatal19_OBJECTS) $(spfatal19_LDADD)
+LINK_LIBS = $(spfatal19_LDLIBS)
+
+spfatal19$(EXEEXT): $(spfatal19_OBJECTS) $(spfatal19_DEPENDENCIES)
+       @rm -f spfatal19$(EXEEXT)
+       $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal19/spfatal19.doc:1.1
--- /dev/null   Mon Jun 21 22:11:35 2010
+++ rtems/testsuites/sptests/spfatal19/spfatal19.doc    Mon Jun 21 21:15:46 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+#
+#  $Id$
+#
+#  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:  spfatal19
+
+directives:
+
+  rtems_termios_open
+
+concepts:
+
++ fatal error for one of the semaphore creates
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal19/spfatal19.scn:1.1
--- /dev/null   Mon Jun 21 22:11:35 2010
+++ rtems/testsuites/sptests/spfatal19/spfatal19.scn    Mon Jun 21 21:15:46 2010
</font><font color='#997700'>@@ -0,0 +1 @@
</font><font color='#000088'>+Fatal error (termios sem create #4) hit
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spfatal19/testcase.h:1.1
--- /dev/null   Mon Jun 21 22:11:35 2010
+++ rtems/testsuites/sptests/spfatal19/testcase.h       Mon Jun 21 21:15:46 2010
</font><font color='#997700'>@@ -0,0 +1,28 @@
</font><font color='#000088'>+/*
+ *  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.
+ *
+ *  $Id$
+ */
+
+/* generate fatal errors in termios.c<span style="background-color: #FF0000"> </span>
+ *    rtems_semaphore_create( rtems_build_name ('T', 'R', 'i', c),...);
+ */
+
+#define FATAL_ERROR_TEST_NAME            "19"
+#define FATAL_ERROR_DESCRIPTION          "termios sem create #4"
+#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
+#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
+#define FATAL_ERROR_EXPECTED_ERROR       RTEMS_TOO_MANY
+
+#define CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS \
+  CONSUME_SEMAPHORE_DRIVERS
+
+void force_error()
+{
+  /* we will not run this far */
+}
</font></pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>

        * Makefile.am, configure.ac: spfatal20 not ready.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.381&r2=text&tr2=1.382&diff_format=h">M</a></td><td width='1%'>1.382</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/Makefile.am.diff?r1=text&tr1=1.89&r2=text&tr2=1.90&diff_format=h">M</a></td><td width='1%'>1.90</td><td width='100%'>testsuites/sptests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/configure.ac.diff?r1=text&tr1=1.94&r2=text&tr2=1.95&diff_format=h">M</a></td><td width='1%'>1.95</td><td width='100%'>testsuites/sptests/configure.ac</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.381 rtems/testsuites/sptests/ChangeLog:1.382
--- rtems/testsuites/sptests/ChangeLog:1.381    Mon Jun 21 21:15:40 2010
+++ rtems/testsuites/sptests/ChangeLog  Mon Jun 21 21:19:39 2010
</font><font color='#997700'>@@ -1,5 +1,9 @@
</font> 2010-06-21        Joel Sherrill <joel.sherrill@oarcorp.com>
 
<font color='#000088'>+   * Makefile.am, configure.ac: spfatal20 not ready.
+
+2010-06-21     Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font>   * Makefile.am, configure.ac: Add new tests to generate fatal errors in
        rtems_termios_open().
        * spfatal16/.cvsignore, spfatal16/Makefile.am, spfatal16/spfatal16.doc,

<font color='#006600'>diff -u rtems/testsuites/sptests/Makefile.am:1.89 rtems/testsuites/sptests/Makefile.am:1.90
--- rtems/testsuites/sptests/Makefile.am:1.89   Mon Jun 21 21:15:41 2010
+++ rtems/testsuites/sptests/Makefile.am        Mon Jun 21 21:19:39 2010
</font><font color='#997700'>@@ -19,7 +19,7 @@
</font>     spstkalloc spthreadq01 spwatchdog spwkspace \
     spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 spfatal07 \
     spfatal08 spfatal09 spfatal10 spfatal11 spfatal12 spfatal13 spfatal14 \
<font color='#880000'>-    spfatal15 spfatal16 spfatal17 spfatal18 spfatal19 spfatal20 \
</font><font color='#000088'>+    spfatal15 spfatal16 spfatal17 spfatal18 spfatal19 \
</font>     spfifo01 spfifo02 spfifo03 spfifo04 spfifo08 \
     spintrcritical01 spintrcritical02 spintrcritical03 spintrcritical04 \
     spintrcritical05 spintrcritical06 spintrcritical07 spintrcritical08 \

<font color='#006600'>diff -u rtems/testsuites/sptests/configure.ac:1.94 rtems/testsuites/sptests/configure.ac:1.95
--- rtems/testsuites/sptests/configure.ac:1.94  Mon Jun 21 21:15:41 2010
+++ rtems/testsuites/sptests/configure.ac       Mon Jun 21 21:19:39 2010
</font><font color='#997700'>@@ -118,7 +118,6 @@
</font> spfatal17/Makefile
 spfatal18/Makefile
 spfatal19/Makefile
<font color='#880000'>-spfatal20/Makefile
</font> spfifo01/Makefile
 spfifo02/Makefile
 spfifo03/Makefile
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>