summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp65
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/sptests/sp65
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/sptests/sp65')
-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
5 files changed, 109 insertions, 0 deletions
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