forked from Imagelibrary/rtems
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.
This commit is contained in:
2
testsuites/sptests/spfatal17/.cvsignore
Normal file
2
testsuites/sptests/spfatal17/.cvsignore
Normal file
@@ -0,0 +1,2 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
29
testsuites/sptests/spfatal17/Makefile.am
Normal file
29
testsuites/sptests/spfatal17/Makefile.am
Normal file
@@ -0,0 +1,29 @@
|
||||
##
|
||||
## $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
|
||||
22
testsuites/sptests/spfatal17/spfatal17.doc
Normal file
22
testsuites/sptests/spfatal17/spfatal17.doc
Normal file
@@ -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: spfatal17
|
||||
|
||||
directives:
|
||||
|
||||
rtems_termios_open
|
||||
|
||||
concepts:
|
||||
|
||||
+ fatal error for one of the semaphore creates
|
||||
1
testsuites/sptests/spfatal17/spfatal17.scn
Normal file
1
testsuites/sptests/spfatal17/spfatal17.scn
Normal file
@@ -0,0 +1 @@
|
||||
Fatal error (termios sem create #2) hit
|
||||
28
testsuites/sptests/spfatal17/testcase.h
Normal file
28
testsuites/sptests/spfatal17/testcase.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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', '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 */
|
||||
}
|
||||
Reference in New Issue
Block a user