summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-12 13:09:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-12 13:09:36 +0000
commit79a0a6a9daacfc632d4fcfacf3490db713209ed8 (patch)
tree28f3423fc2792fcf09d150454666ca1b4720de1c /testsuites
parentSet default osname fedora-11. (diff)
downloadrtems-79a0a6a9daacfc632d4fcfacf3490db713209ed8.tar.bz2
2009-08-12 Santosh G Vattam <vattam.santosh@gmail.com>
* ChangeLog, Makefile.am, configure.ac: Add new test for some core mutex cases. * sp65/.cvsignore, sp65/Makefile.am, sp65/init.c, sp65/sp65.doc, sp65/sp65.scn: New files.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/ChangeLog13
-rw-r--r--testsuites/sptests/Makefile.am2
-rw-r--r--testsuites/sptests/configure.ac1
-rw-r--r--testsuites/sptests/sp65/.cvsignore2
-rw-r--r--testsuites/sptests/sp65/Makefile.am29
-rw-r--r--testsuites/sptests/sp65/init.c54
-rw-r--r--testsuites/sptests/sp65/sp65.doc24
-rw-r--r--testsuites/sptests/sp65/sp65.scn0
8 files changed, 124 insertions, 1 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index 7b3666463d..36171d407c 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,3 +1,16 @@
+2009-08-12 Santosh G Vattam <vattam.santosh@gmail.com>
+
+ * ChangeLog, Makefile.am, configure.ac: Add new test for some core
+ mutex cases.
+ * sp65/.cvsignore, sp65/Makefile.am, sp65/init.c, sp65/sp65.doc,
+ sp65/sp65.scn: New files.
+
+2009-08-12 Santosh G Vattam <vattam.santosh@gmail.com>
+
+ * Makefile.am, configure.ac: Add new test for some core mutex cases.
+ * sp65/.cvsignore, sp65/Makefile.am, sp65/init.c, sp65/sp65.doc,
+ sp65/sp65.scn: New files.
+
2009-08-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* spintrcritical01/init.c, spintrcritical06/init.c: Use 1 millisecond
diff --git a/testsuites/sptests/Makefile.am b/testsuites/sptests/Makefile.am
index e85dea6d89..c220f86397 100644
--- a/testsuites/sptests/Makefile.am
+++ b/testsuites/sptests/Makefile.am
@@ -13,7 +13,7 @@ SUBDIRS = \
sp30 sp31 sp32 sp33 sp34 sp35 sp37 sp38 sp39 \
sp40 sp41 sp42 sp43 sp44 sp45 sp46 sp47 sp48 sp49 \
sp50 sp51 sp52 sp53 sp54 sp55 sp56 sp57 sp58 sp59 \
- sp60 sp61 sp62 sp63 sp64 \
+ sp60 sp61 sp62 sp63 sp64 sp65 \
spchain spclockget spcoverage spobjgetnext spprintk spsize \
spstkalloc spthreadq01 spwatchdog spwkspace \
spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 spfatal07 \
diff --git a/testsuites/sptests/configure.ac b/testsuites/sptests/configure.ac
index 88a9746c37..9024150d73 100644
--- a/testsuites/sptests/configure.ac
+++ b/testsuites/sptests/configure.ac
@@ -90,6 +90,7 @@ sp61/Makefile
sp62/Makefile
sp63/Makefile
sp64/Makefile
+sp65/Makefile
spchain/Makefile
spclockget/Makefile
spcoverage/Makefile
diff --git a/testsuites/sptests/sp65/.cvsignore b/testsuites/sptests/sp65/.cvsignore
new file mode 100644
index 0000000000..282522db03
--- /dev/null
+++ b/testsuites/sptests/sp65/.cvsignore
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/testsuites/sptests/sp65/Makefile.am b/testsuites/sptests/sp65/Makefile.am
new file mode 100644
index 0000000000..99f351067b
--- /dev/null
+++ b/testsuites/sptests/sp65/Makefile.am
@@ -0,0 +1,29 @@
+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = sp65
+sp65_SOURCES = init.c
+
+dist_rtems_tests_DATA = sp65.scn
+dist_rtems_tests_DATA += sp65.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+sp65_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
+
+AM_CPPFLAGS += -I$(top_srcdir)/include
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(sp65_OBJECTS) $(sp65_LDADD)
+LINK_LIBS = $(sp65_LDLIBS)
+
+sp65$(EXEEXT): $(sp65_OBJECTS) $(sp65_DEPENDENCIES)
+ @rm -f sp65$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/sptests/sp65/init.c b/testsuites/sptests/sp65/init.c
new file mode 100644
index 0000000000..e4d53f80d0
--- /dev/null
+++ b/testsuites/sptests/sp65/init.c
@@ -0,0 +1,54 @@
+/*
+ * 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$
+ */
+
+#include <tmacros.h>
+#include <rtems/rtems/sem.h>
+
+void* Task_1(
+ void *argument
+);
+
+rtems_task Init(
+ rtems_task_argument ignored
+)
+{
+ int status, ceiling, old_ceiling;
+ rtems_id Mutex_id;
+
+ puts( "\n\n*** TEST 65 ***" );
+
+ status = rtems_semaphore_create(
+ rtems_build_name( 's','e','m','1' ),
+ 1,
+ RTEMS_SIMPLE_BINARY_SEMAPHORE,
+ 1,
+ &Mutex_id
+ )
+ assert( !status );
+
+ puts( "*** END OF TEST 65 ***" );
+
+ rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_MAXIMUM_REGIONS 1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+
+/* global variables */
diff --git a/testsuites/sptests/sp65/sp65.doc b/testsuites/sptests/sp65/sp65.doc
new file mode 100644
index 0000000000..d6390f914d
--- /dev/null
+++ b/testsuites/sptests/sp65/sp65.doc
@@ -0,0 +1,24 @@
+#
+# $Id$
+#
+# 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.
+#
+
+This file describes the directives and concepts tested by this test set.
+
+test set name: sp65
+
+directives:
+
+ rtems_region_create
+ really _Objects_Extend_information when unlimited extension fails
+
+concepts:
+
++ Ensure that being unable to allocate memory when extending an object class
+ works as expected.
diff --git a/testsuites/sptests/sp65/sp65.scn b/testsuites/sptests/sp65/sp65.scn
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/testsuites/sptests/sp65/sp65.scn