change log for rtems (2010-07-27)
rtems-vc at rtems.org
rtems-vc at rtems.org
Tue Jul 27 15:10:36 UTC 2010
*joel*:
2010-07-27 Bharath Suri <bharath.s.jois at gmail.com>
PR 1631/testing
* gxx02/init.c, gxx02/gxx02.scn, gxx02/gxx02.doc,
gxx02/Makefile.am, gxx02/gxx_wrappers.h: New test added
* Makefile.am, configure.ac: Changes to accommodate new tests
M 1.217 testsuites/libtests/ChangeLog
M 1.44 testsuites/libtests/Makefile.am
M 1.51 testsuites/libtests/configure.ac
A 1.1 testsuites/libtests/gxx02/.cvsignore
A 1.1 testsuites/libtests/gxx02/Makefile.am
A 1.1 testsuites/libtests/gxx02/gxx02.doc
A 1.1 testsuites/libtests/gxx02/gxx02.scn
A 1.1 testsuites/libtests/gxx02/init.c
diff -u rtems/testsuites/libtests/ChangeLog:1.216 rtems/testsuites/libtests/ChangeLog:1.217
--- rtems/testsuites/libtests/ChangeLog:1.216 Tue Jul 27 08:57:16 2010
+++ rtems/testsuites/libtests/ChangeLog Tue Jul 27 09:45:09 2010
@@ -1,3 +1,10 @@
+2010-07-27 Bharath Suri <bharath.s.jois at gmail.com>
+
+ PR 1631/testing
+ * gxx02/init.c, gxx02/gxx02.scn, gxx02/gxx02.doc,
+ gxx02/Makefile.am, gxx02/gxx_wrappers.h: New test added
+ * Makefile.am, configure.ac: Changes to accommodate new tests
+
2010-07-27 Joel Sherrill <joel.sherrill at oarcorp.com>
PR 1632/testing
diff -u rtems/testsuites/libtests/Makefile.am:1.43 rtems/testsuites/libtests/Makefile.am:1.44
--- rtems/testsuites/libtests/Makefile.am:1.43 Tue Jul 27 08:57:16 2010
+++ rtems/testsuites/libtests/Makefile.am Tue Jul 27 09:45:09 2010
@@ -7,7 +7,7 @@
SUBDIRS = POSIX
SUBDIRS += bspcmdline01 cpuuse devfs01 devfs02 devfs03 devfs04 \
- devnullfatal01 gxx01 \
+ devnullfatal01 gxx01 gxx02 \
malloctest malloc02 malloc03 malloc04 malloc05 heapwalk \
putenvtest monitor monitor02 rtmonuse stackchk stackchk01 \
termios termios01 termios02 termios03 termios04 termios05 \
diff -u rtems/testsuites/libtests/configure.ac:1.50 rtems/testsuites/libtests/configure.ac:1.51
--- rtems/testsuites/libtests/configure.ac:1.50 Tue Jul 27 08:57:16 2010
+++ rtems/testsuites/libtests/configure.ac Tue Jul 27 09:45:09 2010
@@ -51,6 +51,7 @@
devfs04/Makefile
devnullfatal01/Makefile
gxx01/Makefile
+gxx02/Makefile
heapwalk/Makefile
malloctest/Makefile
malloc02/Makefile
diff -u /dev/null rtems/testsuites/libtests/gxx02/.cvsignore:1.1
--- /dev/null Tue Jul 27 10:10:36 2010
+++ rtems/testsuites/libtests/gxx02/.cvsignore Tue Jul 27 09:45:09 2010
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff -u /dev/null rtems/testsuites/libtests/gxx02/Makefile.am:1.1
--- /dev/null Tue Jul 27 10:10:36 2010
+++ rtems/testsuites/libtests/gxx02/Makefile.am Tue Jul 27 09:45:09 2010
@@ -0,0 +1,27 @@
+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = gxx02
+gxx02_SOURCES = init.c
+
+dist_rtems_tests_DATA = gxx02.scn
+dist_rtems_tests_DATA += gxx02.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+AM_CPPFLAGS += -I$(top_srcdir)/gxx01
+
+LINK_OBJS = $(gxx02_OBJECTS) $(gxx02_LDADD)
+LINK_LIBS = $(gxx02_LDLIBS)
+
+gxx02$(EXEEXT): $(gxx02_OBJECTS) $(gxx02_DEPENDENCIES)
+ @rm -f gxx02$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
diff -u /dev/null rtems/testsuites/libtests/gxx02/gxx02.doc:1.1
--- /dev/null Tue Jul 27 10:10:36 2010
+++ rtems/testsuites/libtests/gxx02/gxx02.doc Tue Jul 27 09:45:09 2010
@@ -0,0 +1,23 @@
+#
+# $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: gxx01
+
+directives:
+
+ rtems_gxx_getspecific
+
+concepts:
+
++ Exercise an error path in the rtems_gxx_getspecific() routine,
+leading to a rtems_panic
diff -u /dev/null rtems/testsuites/libtests/gxx02/gxx02.scn:1.1
--- /dev/null Tue Jul 27 10:10:36 2010
+++ rtems/testsuites/libtests/gxx02/gxx02.scn Tue Jul 27 09:45:10 2010
@@ -0,0 +1,6 @@
+*** TEST GXX 02 ***
+Init - allocating most of workspace memory
+rtems_gxx_getspecific() - panic and exit
+*** END OF TEST GXX 02 ***
+rtems_gxx_getspecific
+fatal error, exiting
diff -u /dev/null rtems/testsuites/libtests/gxx02/init.c:1.1
--- /dev/null Tue Jul 27 10:10:36 2010
+++ rtems/testsuites/libtests/gxx02/init.c Tue Jul 27 09:45:10 2010
@@ -0,0 +1,56 @@
+/*
+ * 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 <tmacros.h>
+#include "test_support.h"
+#include "gxx_wrappers.h"
+#include <rtems/score/heap.h>
+
+rtems_task Init(
+ rtems_task_argument argument
+)
+{
+
+ void *alloc_ptr = (void *)0;
+ Heap_Information_block Info;
+ __gthread_key_t key = 0;
+ int status = 0;
+ void *retptr;
+
+ puts( "\n\n*** TEST GXX 02 ***" );
+
+ puts( "Init - allocating most of workspace memory" );
+ status = rtems_workspace_get_information( &Info );
+ rtems_test_assert( status == true );
+ status = rtems_workspace_allocate( Info.Free.largest - 4, &alloc_ptr );
+ rtems_test_assert( status == true );
+
+ puts( "rtems_gxx_getspecific() - panic and exit" );
+
+ puts( "*** END OF TEST GXX 02 ***" );
+
+ /* The below call will not return and hence the END OF above */
+ retptr = rtems_gxx_getspecific( key );
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_MAXIMUM_SEMAPHORES 2
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100727/fa02c214/attachment-0001.html>
More information about the vc
mailing list