From 83636b5802c9ab50d1a19e2b186c864ad54f93b6 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 23 Aug 2010 08:27:34 +0000 Subject: 2010-08-23 Sebastian Huber * spfatal24/.cvsignore, spfatal24/Makefile.am, spfatal24/spfatal24.doc, spfatal24/spfatal24.scn, spfatal24/testcase.h, spfatal25/.cvsignore, spfatal25/Makefile.am, spfatal25/spfatal25.doc, spfatal25/spfatal25.scn, spfatal25/testcase.h: New files. * Makefile.am, configure.ac: Reflect changes above. --- testsuites/sptests/ChangeLog | 9 + testsuites/sptests/Makefile.am | 2 +- testsuites/sptests/configure.ac | 2 + testsuites/sptests/spfatal24/.cvsignore | 2 + testsuites/sptests/spfatal24/Makefile.am | 25 ++ testsuites/sptests/spfatal24/Makefile.in | 587 +++++++++++++++++++++++++++++ testsuites/sptests/spfatal24/spfatal24.doc | 22 ++ testsuites/sptests/spfatal24/spfatal24.scn | 3 + testsuites/sptests/spfatal24/testcase.h | 34 ++ testsuites/sptests/spfatal25/.cvsignore | 2 + testsuites/sptests/spfatal25/Makefile.am | 25 ++ testsuites/sptests/spfatal25/spfatal25.doc | 22 ++ testsuites/sptests/spfatal25/spfatal25.scn | 3 + testsuites/sptests/spfatal25/testcase.h | 28 ++ 14 files changed, 765 insertions(+), 1 deletion(-) create mode 100644 testsuites/sptests/spfatal24/.cvsignore create mode 100644 testsuites/sptests/spfatal24/Makefile.am create mode 100644 testsuites/sptests/spfatal24/Makefile.in create mode 100644 testsuites/sptests/spfatal24/spfatal24.doc create mode 100644 testsuites/sptests/spfatal24/spfatal24.scn create mode 100644 testsuites/sptests/spfatal24/testcase.h create mode 100644 testsuites/sptests/spfatal25/.cvsignore create mode 100644 testsuites/sptests/spfatal25/Makefile.am create mode 100644 testsuites/sptests/spfatal25/spfatal25.doc create mode 100644 testsuites/sptests/spfatal25/spfatal25.scn create mode 100644 testsuites/sptests/spfatal25/testcase.h (limited to 'testsuites/sptests') diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index 70f89dc607..ea0bd61a54 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,3 +1,12 @@ +2010-08-23 Sebastian Huber + + * spfatal24/.cvsignore, spfatal24/Makefile.am, + spfatal24/spfatal24.doc, spfatal24/spfatal24.scn, + spfatal24/testcase.h, spfatal25/.cvsignore, spfatal25/Makefile.am, + spfatal25/spfatal25.doc, spfatal25/spfatal25.scn, + spfatal25/testcase.h: New files. + * Makefile.am, configure.ac: Reflect changes above. + 2010-08-10 Joel Sherrill PR 1658/cpukit diff --git a/testsuites/sptests/Makefile.am b/testsuites/sptests/Makefile.am index 0f8c6f71b3..bfb5b0c527 100644 --- a/testsuites/sptests/Makefile.am +++ b/testsuites/sptests/Makefile.am @@ -22,7 +22,7 @@ SUBDIRS = \ spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 spfatal07 \ spfatal08 spfatal09 spfatal10 spfatal11 spfatal12 spfatal13 spfatal14 \ spfatal15 spfatal16 spfatal17 spfatal18 spfatal19 spfatal20 spfatal21 \ - spfatal22 spfatal23 \ + spfatal22 spfatal23 spfatal24 spfatal25 \ spfifo01 spfifo02 spfifo03 spfifo04 spfifo05 \ spintrcritical01 spintrcritical02 spintrcritical03 spintrcritical04 \ spintrcritical05 spintrcritical06 spintrcritical07 spintrcritical08 \ diff --git a/testsuites/sptests/configure.ac b/testsuites/sptests/configure.ac index 0de5cc5ec2..c6cf40702b 100644 --- a/testsuites/sptests/configure.ac +++ b/testsuites/sptests/configure.ac @@ -127,6 +127,8 @@ spfatal20/Makefile spfatal21/Makefile spfatal22/Makefile spfatal23/Makefile +spfatal24/Makefile +spfatal25/Makefile spfifo01/Makefile spfifo02/Makefile spfifo03/Makefile diff --git a/testsuites/sptests/spfatal24/.cvsignore b/testsuites/sptests/spfatal24/.cvsignore new file mode 100644 index 0000000000..282522db03 --- /dev/null +++ b/testsuites/sptests/spfatal24/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/testsuites/sptests/spfatal24/Makefile.am b/testsuites/sptests/spfatal24/Makefile.am new file mode 100644 index 0000000000..36f1274c5b --- /dev/null +++ b/testsuites/sptests/spfatal24/Makefile.am @@ -0,0 +1,25 @@ +## +## $Id$ +## + +rtems_tests_PROGRAMS = spfatal24 +spfatal24_SOURCES = ../spfatal_support/init.c \ + ../spfatal_support/system.h testcase.h + +dist_rtems_tests_DATA = spfatal24.scn +dist_rtems_tests_DATA += spfatal24.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 + +LINK_OBJS = $(spfatal24_OBJECTS) $(spfatal24_LDADD) +LINK_LIBS = $(spfatal24_LDLIBS) + +spfatal24$(EXEEXT): $(spfatal24_OBJECTS) $(spfatal24_DEPENDENCIES) + @rm -f spfatal24$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/sptests/spfatal24/Makefile.in b/testsuites/sptests/spfatal24/Makefile.in new file mode 100644 index 0000000000..0942ac46c9 --- /dev/null +++ b/testsuites/sptests/spfatal24/Makefile.in @@ -0,0 +1,587 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +rtems_tests_PROGRAMS = spfatal24$(EXEEXT) +DIST_COMMON = $(dist_rtems_tests_DATA) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(top_srcdir)/../automake/compile.am \ + $(top_srcdir)/../automake/leaf.am \ + $(top_srcdir)/../automake/local.am +subdir = spfatal24 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = \ + $(top_srcdir)/../aclocal/canonical-target-name.m4 \ + $(top_srcdir)/../aclocal/canonicalize-tools.m4 \ + $(top_srcdir)/../aclocal/check-custom-bsp.m4 \ + $(top_srcdir)/../aclocal/check-tool.m4 \ + $(top_srcdir)/../aclocal/env-rtemsbsp.m4 \ + $(top_srcdir)/../aclocal/prog-cc.m4 \ + $(top_srcdir)/../aclocal/project-root.m4 \ + $(top_srcdir)/../aclocal/rtems-test-no-pause.m4 \ + $(top_srcdir)/../aclocal/rtems-top.m4 \ + $(top_srcdir)/../aclocal/version.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__installdirs = "$(DESTDIR)$(rtems_testsdir)" \ + "$(DESTDIR)$(rtems_testsdir)" +PROGRAMS = $(rtems_tests_PROGRAMS) +am_spfatal24_OBJECTS = init.$(OBJEXT) +spfatal24_OBJECTS = $(am_spfatal24_OBJECTS) +spfatal24_LDADD = $(LDADD) +DEFAULT_INCLUDES = -I.@am__isrc@ +depcomp = $(SHELL) $(top_srcdir)/../../depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(spfatal24_SOURCES) +DIST_SOURCES = $(spfatal24_SOURCES) +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +DATA = $(dist_rtems_tests_DATA) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BIN2C = @BIN2C@ +CC = @CC@ $(GCCSPECS) +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ $(GCCSPECS) +CPPFLAGS = @CPPFLAGS@ +CPUKIT_ROOT = @CPUKIT_ROOT@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +ENDIF = @ENDIF@ +EXEEXT = @EXEEXT@ +GCCSPECS = @GCCSPECS@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKE = @MAKE@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +OBJCOPY = @OBJCOPY@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PACKHEX = @PACKHEX@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PROJECT_INCLUDE = @PROJECT_INCLUDE@ +PROJECT_LIB = @PROJECT_LIB@ +PROJECT_RELEASE = @PROJECT_RELEASE@ +PROJECT_ROOT = @PROJECT_ROOT@ +PROJECT_TOPdir = @PROJECT_TOPdir@ +RANLIB = @RANLIB@ +RTEMS_BSP = @RTEMS_BSP@ +RTEMS_BSP_FAMILY = @RTEMS_BSP_FAMILY@ +RTEMS_CPU = @RTEMS_CPU@ +RTEMS_ROOT = @RTEMS_ROOT@ +RTEMS_TOPdir = @RTEMS_TOPdir@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SIZE = @SIZE@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +rtems_testsdir = @rtems_testsdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +spfatal24_SOURCES = ../spfatal_support/init.c \ + ../spfatal_support/system.h testcase.h + +dist_rtems_tests_DATA = spfatal24.scn spfatal24.doc +CXX = @CXX@ $(GCCSPECS) +AM_CPPFLAGS = -I$(top_srcdir)/../support/include +AM_CFLAGS = +AM_CXXFLAGS = +CLEANFILES = *.num *.nxe *.elf *.srec* *.bin *.bt *.ralf +CXXLINK_APP = $(CXXLINK) $(LDLIBS) $(LINK_OBJS) $(LINK_LIBS) +LINK_APP = $(LINK) $(LDLIBS) $(LINK_OBJS) $(LINK_LIBS) +LINK_OBJS = $(spfatal24_OBJECTS) $(spfatal24_LDADD) +LINK_LIBS = $(spfatal24_LDLIBS) +PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/../automake/compile.am $(top_srcdir)/../automake/leaf.am $(top_srcdir)/../automake/local.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign spfatal24/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign spfatal24/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-rtems_testsPROGRAMS: $(rtems_tests_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(rtems_testsdir)" || $(MKDIR_P) "$(DESTDIR)$(rtems_testsdir)" + @list='$(rtems_tests_PROGRAMS)'; test -n "$(rtems_testsdir)" || list=; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p; \ + then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(rtems_testsdir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(rtems_testsdir)$$dir" || exit $$?; \ + } \ + ; done + +uninstall-rtems_testsPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(rtems_tests_PROGRAMS)'; test -n "$(rtems_testsdir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(rtems_testsdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(rtems_testsdir)" && rm -f $$files + +clean-rtems_testsPROGRAMS: + -test -z "$(rtems_tests_PROGRAMS)" || rm -f $(rtems_tests_PROGRAMS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +init.o: ../spfatal_support/init.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT init.o -MD -MP -MF $(DEPDIR)/init.Tpo -c -o init.o `test -f '../spfatal_support/init.c' || echo '$(srcdir)/'`../spfatal_support/init.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/init.Tpo $(DEPDIR)/init.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../spfatal_support/init.c' object='init.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o init.o `test -f '../spfatal_support/init.c' || echo '$(srcdir)/'`../spfatal_support/init.c + +init.obj: ../spfatal_support/init.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT init.obj -MD -MP -MF $(DEPDIR)/init.Tpo -c -o init.obj `if test -f '../spfatal_support/init.c'; then $(CYGPATH_W) '../spfatal_support/init.c'; else $(CYGPATH_W) '$(srcdir)/../spfatal_support/init.c'; fi` +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/init.Tpo $(DEPDIR)/init.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../spfatal_support/init.c' object='init.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o init.obj `if test -f '../spfatal_support/init.c'; then $(CYGPATH_W) '../spfatal_support/init.c'; else $(CYGPATH_W) '$(srcdir)/../spfatal_support/init.c'; fi` +install-dist_rtems_testsDATA: $(dist_rtems_tests_DATA) + @$(NORMAL_INSTALL) + test -z "$(rtems_testsdir)" || $(MKDIR_P) "$(DESTDIR)$(rtems_testsdir)" + @list='$(dist_rtems_tests_DATA)'; test -n "$(rtems_testsdir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(rtems_testsdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(rtems_testsdir)" || exit $$?; \ + done + +uninstall-dist_rtems_testsDATA: + @$(NORMAL_UNINSTALL) + @list='$(dist_rtems_tests_DATA)'; test -n "$(rtems_testsdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(rtems_testsdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(rtems_testsdir)" && rm -f $$files + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(PROGRAMS) $(DATA) +installdirs: + for dir in "$(DESTDIR)$(rtems_testsdir)" "$(DESTDIR)$(rtems_testsdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-rtems_testsPROGRAMS mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-dist_rtems_testsDATA \ + install-rtems_testsPROGRAMS + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-dist_rtems_testsDATA \ + uninstall-rtems_testsPROGRAMS + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-rtems_testsPROGRAMS ctags distclean distclean-compile \ + distclean-generic distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dist_rtems_testsDATA install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-rtems_testsPROGRAMS install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ + uninstall-am uninstall-dist_rtems_testsDATA \ + uninstall-rtems_testsPROGRAMS + + +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(RTEMS_ROOT)/make/leaf.cfg +ifndef make-cxx-exe +define make-cxx-exe + $(CXXLINK_APP) +endef +@ENDIF@ +ifndef make-exe +define make-exe + $(LINK_APP) +endef +@ENDIF@ + +spfatal24$(EXEEXT): $(spfatal24_OBJECTS) $(spfatal24_DEPENDENCIES) + @rm -f spfatal24$(EXEEXT) + $(make-exe) + +preinstall: +.PHONY: preinstall + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/testsuites/sptests/spfatal24/spfatal24.doc b/testsuites/sptests/spfatal24/spfatal24.doc new file mode 100644 index 0000000000..1dd2f4e777 --- /dev/null +++ b/testsuites/sptests/spfatal24/spfatal24.doc @@ -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: spfatal24 + +directives: + + rtems_gxx_getspecific(); + +concepts: + ++ Trigger fatal error. diff --git a/testsuites/sptests/spfatal24/spfatal24.scn b/testsuites/sptests/spfatal24/spfatal24.scn new file mode 100644 index 0000000000..92df4ab1e6 --- /dev/null +++ b/testsuites/sptests/spfatal24/spfatal24.scn @@ -0,0 +1,3 @@ +*** TEST FATAL GXX KEY ADD FAILURE *** +Fatal error (GXX KEY ADD FAILURE) hit +*** END OF TEST *** diff --git a/testsuites/sptests/spfatal24/testcase.h b/testsuites/sptests/spfatal24/testcase.h new file mode 100644 index 0000000000..883b87aa23 --- /dev/null +++ b/testsuites/sptests/spfatal24/testcase.h @@ -0,0 +1,34 @@ +/* + * 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$ + */ + +#include + +#define FATAL_ERROR_TEST_NAME "GXX KEY ADD FAILURE" +#define FATAL_ERROR_DESCRIPTION "GXX KEY ADD FAILURE" +#define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_CORE +#define FATAL_ERROR_EXPECTED_IS_INTERNAL TRUE +#define FATAL_ERROR_EXPECTED_ERROR INTERNAL_ERROR_GXX_KEY_ADD_FAILED + +void force_error() +{ + void *alloc_ptr = NULL; + Heap_Information_block info; + __gthread_key_t key = 0; + bool ok = false; + + ok = rtems_workspace_get_information( &info ); + rtems_test_assert( ok ); + + ok = rtems_workspace_allocate( info.Free.largest - 4, &alloc_ptr ); + rtems_test_assert( ok ); + + rtems_gxx_getspecific( key ); +} diff --git a/testsuites/sptests/spfatal25/.cvsignore b/testsuites/sptests/spfatal25/.cvsignore new file mode 100644 index 0000000000..282522db03 --- /dev/null +++ b/testsuites/sptests/spfatal25/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/testsuites/sptests/spfatal25/Makefile.am b/testsuites/sptests/spfatal25/Makefile.am new file mode 100644 index 0000000000..79e9a6a914 --- /dev/null +++ b/testsuites/sptests/spfatal25/Makefile.am @@ -0,0 +1,25 @@ +## +## $Id$ +## + +rtems_tests_PROGRAMS = spfatal25 +spfatal25_SOURCES = ../spfatal_support/init.c \ + ../spfatal_support/system.h testcase.h + +dist_rtems_tests_DATA = spfatal25.scn +dist_rtems_tests_DATA += spfatal25.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 + +LINK_OBJS = $(spfatal25_OBJECTS) $(spfatal25_LDADD) +LINK_LIBS = $(spfatal25_LDLIBS) + +spfatal25$(EXEEXT): $(spfatal25_OBJECTS) $(spfatal25_DEPENDENCIES) + @rm -f spfatal25$(EXEEXT) + $(make-exe) + +include $(top_srcdir)/../automake/local.am diff --git a/testsuites/sptests/spfatal25/spfatal25.doc b/testsuites/sptests/spfatal25/spfatal25.doc new file mode 100644 index 0000000000..1dd2f4e777 --- /dev/null +++ b/testsuites/sptests/spfatal25/spfatal25.doc @@ -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: spfatal24 + +directives: + + rtems_gxx_getspecific(); + +concepts: + ++ Trigger fatal error. diff --git a/testsuites/sptests/spfatal25/spfatal25.scn b/testsuites/sptests/spfatal25/spfatal25.scn new file mode 100644 index 0000000000..0b61cf8384 --- /dev/null +++ b/testsuites/sptests/spfatal25/spfatal25.scn @@ -0,0 +1,3 @@ +*** TEST FATAL GXX MUTEX INIT FAILED *** +Fatal error (GXX MUTEX INIT FAILED) hit +*** END OF TEST *** diff --git a/testsuites/sptests/spfatal25/testcase.h b/testsuites/sptests/spfatal25/testcase.h new file mode 100644 index 0000000000..729e0571af --- /dev/null +++ b/testsuites/sptests/spfatal25/testcase.h @@ -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$ + */ + +#include + +#define FATAL_ERROR_TEST_NAME "GXX MUTEX INIT FAILED" +#define FATAL_ERROR_DESCRIPTION "GXX MUTEX INIT FAILED" +#define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_CORE +#define FATAL_ERROR_EXPECTED_IS_INTERNAL TRUE +#define FATAL_ERROR_EXPECTED_ERROR INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED + +void force_error() +{ + __gthread_mutex_t mutex; + + while ( true ) { + rtems_gxx_mutex_init( &mutex ); + rtems_test_assert( mutex != 0 ); + } +} -- cgit v1.2.3