2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>

* Makefile.am, configure.ac: Add new fatal error test for termios
	initialize.
	* spfatal20/.cvsignore, spfatal20/Makefile.am, spfatal20/spfatal20.doc,
	spfatal20/spfatal20.scn, spfatal20/testcase.h: New files.
This commit is contained in:
Joel Sherrill
2010-07-06 01:53:09 +00:00
parent e23cc55a61
commit bfaa6d3ec1
8 changed files with 93 additions and 1 deletions
+7
View File
@@ -1,3 +1,10 @@
2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add new fatal error test for termios
initialize.
* spfatal20/.cvsignore, spfatal20/Makefile.am, spfatal20/spfatal20.doc,
spfatal20/spfatal20.scn, spfatal20/testcase.h: New files.
2010-07-05 Bharath Suri <bharath.s.jois@gmail.com>
PR 1600/testing
+1 -1
View File
@@ -20,7 +20,7 @@ SUBDIRS = \
sperror01 sperror02 sperror03 \
spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 spfatal07 \
spfatal08 spfatal09 spfatal10 spfatal11 spfatal12 spfatal13 spfatal14 \
spfatal15 spfatal16 spfatal17 spfatal18 spfatal19 \
spfatal15 spfatal16 spfatal17 spfatal18 spfatal19 spfatal20 \
spfifo01 spfifo02 spfifo03 spfifo04 spfifo05 \
spintrcritical01 spintrcritical02 spintrcritical03 spintrcritical04 \
spintrcritical05 spintrcritical06 spintrcritical07 spintrcritical08 \
+1
View File
@@ -122,6 +122,7 @@ spfatal16/Makefile
spfatal17/Makefile
spfatal18/Makefile
spfatal19/Makefile
spfatal20/Makefile
spfifo01/Makefile
spfifo02/Makefile
spfifo03/Makefile
+2
View File
@@ -0,0 +1,2 @@
Makefile
Makefile.in
+29
View File
@@ -0,0 +1,29 @@
##
## $Id$
##
MANAGERS = all
rtems_tests_PROGRAMS = spfatal20
spfatal20_SOURCES = ../spfatal_support/init.c \
../spfatal_support/consume_sems.c \
../spfatal_support/system.h testcase.h
dist_rtems_tests_DATA = spfatal20.scn
dist_rtems_tests_DATA += spfatal20.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=0
LINK_OBJS = $(spfatal20_OBJECTS) $(spfatal20_LDADD)
LINK_LIBS = $(spfatal20_LDLIBS)
spfatal20$(EXEEXT): $(spfatal20_OBJECTS) $(spfatal20_DEPENDENCIES)
@rm -f spfatal20$(EXEEXT)
$(make-exe)
include $(top_srcdir)/../automake/local.am
@@ -0,0 +1,22 @@
#
# $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: spfatal20
directives:
rtems_termios_initialize
concepts:
+ fatal error for unable to create a semaphore
@@ -0,0 +1,2 @@
Fatal error (rtems_termios_initialize cannot create semaphore) hit
+29
View File
@@ -0,0 +1,29 @@
/*
* 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
* rtems_semaphore_create( rtems_build_name ('T', 'R', 'r', c),...);
*/
#define FATAL_ERROR_TEST_NAME "20"
#define FATAL_ERROR_DESCRIPTION \
"rtems_termios_initialize cannot create semaphore"
#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 */
}