<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-07-14)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* spprintk/init.c, spprintk/spprintk.doc, spprintk/spprintk.scn: Clean
up and add test of getchark().
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.402&r2=text&tr2=1.403&diff_format=h">M</a></td><td width='1%'>1.403</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spprintk/init.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>testsuites/sptests/spprintk/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spprintk/spprintk.doc.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>testsuites/sptests/spprintk/spprintk.doc</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spprintk/spprintk.scn.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>testsuites/sptests/spprintk/spprintk.scn</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.402 rtems/testsuites/sptests/ChangeLog:1.403
--- rtems/testsuites/sptests/ChangeLog:1.402 Wed Jul 14 12:03:36 2010
+++ rtems/testsuites/sptests/ChangeLog Wed Jul 14 18:17:48 2010
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#000088'>+ * spprintk/init.c, spprintk/spprintk.doc, spprintk/spprintk.scn: Clean
+ up and add test of getchark().
+
+2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font> * spfatal21/Makefile.am: Fix typo.
2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#006600'>diff -u rtems/testsuites/sptests/spprintk/init.c:1.6 rtems/testsuites/sptests/spprintk/init.c:1.7
--- rtems/testsuites/sptests/spprintk/init.c:1.6 Sun Nov 29 21:33:25 2009
+++ rtems/testsuites/sptests/spprintk/init.c Wed Jul 14 18:17:48 2010
</font><font color='#997700'>@@ -1,7 +1,7 @@
</font> /*
<font color='#880000'>- * Exercise Printk
</font><font color='#000088'>+ * Exercise putk, printk, and getchark
</font> *
<font color='#880000'>- * COPYRIGHT (c) 1989-2009.
</font><font color='#000088'>+ * COPYRIGHT (c) 1989-2010.
</font> * On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
<font color='#997700'>@@ -12,15 +12,41 @@
</font> */
#include <tmacros.h>
<font color='#000088'>+#include <rtems/bspIo.h>
</font>
<font color='#880000'>-rtems_task Init(
- rtems_task_argument argument
-)
</font><font color='#000088'>+int test_getchar(void)
</font> {
<font color='#880000'>- printk( "\n\n*** TEST PRINTK ***\n" );
</font><font color='#000088'>+ return 0x35;
+}
+
+void do_getchark(void)
+{
+ int sc;
+ BSP_polling_getchar_function_type poll_char;
+
+ poll_char = BSP_poll_char;
+
+ BSP_poll_char = NULL;
+<span style="background-color: #FF0000"> </span>
+ putk( "getchark - NULL getchar method - return -1" );
+ sc = getchark();
+ rtems_test_assert( sc == -1 );
+
+ putk( "getchark - test getchar method - returns 0x35" );
+ BSP_poll_char = test_getchar;
+ sc = getchark();
+ rtems_test_assert( sc == 0x35 );
</font>
<font color='#880000'>- putk( "This is a test of putk\n" );
</font><font color='#000088'>+ BSP_poll_char = poll_char;
+}
</font>
<font color='#000088'>+void do_putk(void)
+{
+ putk( "This is a test of putk" );
+}
+
+void do_printk(void)
+{
</font> printk( "bad format -- %%q in parentheses (%q)\n" );
printk( "bad format -- %%lq in parentheses (%lq)\n", 0x1234 );
<font color='#997700'>@@ -52,7 +78,21 @@
</font> printk( "%%-12s of joel -- (%-20s)\n", "joel" );
printk( "%%-4s of joel -- (%-4s)\n", "joel" );
printk( "%%c of X -- (%c)\n", 'X' );
<font color='#000088'>+}
+
+rtems_task Init(
+ rtems_task_argument argument
+)
+{
+ printk( "\n\n*** TEST PRINTK ***\n" );
+
+ do_putk();
+ putk("");
+
+ do_printk();
+ putk("");
</font>
<font color='#000088'>+ do_getchark();
</font>
printk( "*** END OF TEST PRINTK ***\n" );
rtems_test_exit( 0 );
<font color='#006600'>diff -u rtems/testsuites/sptests/spprintk/spprintk.doc:1.1 rtems/testsuites/sptests/spprintk/spprintk.doc:1.2
--- rtems/testsuites/sptests/spprintk/spprintk.doc:1.1 Mon Nov 9 08:25:28 2009
+++ rtems/testsuites/sptests/spprintk/spprintk.doc Wed Jul 14 18:17:48 2010
</font><font color='#997700'>@@ -15,8 +15,14 @@
</font>
directives:
<font color='#000088'>+ putk
</font> printk
<font color='#000088'>+ getchark
</font>
concepts:
<font color='#000088'>++ Ensure that putk() is fully exercised and operates as expected.
+
</font> + Ensure that printk() is fully exercised and operates as expected.
<font color='#000088'>+
++ Ensure that getchark() is fully exercised and operates as expected.
</font>
<font color='#006600'>diff -u rtems/testsuites/sptests/spprintk/spprintk.scn:1.3 rtems/testsuites/sptests/spprintk/spprintk.scn:1.4
--- rtems/testsuites/sptests/spprintk/spprintk.scn:1.3 Mon Nov 9 08:30:10 2009
+++ rtems/testsuites/sptests/spprintk/spprintk.scn Wed Jul 14 18:17:48 2010
</font><font color='#997700'>@@ -1,6 +1,3 @@
</font><font color='#880000'>-sparc-rtems4.10-run is /opt/rtems-4.10/bin/sparc-rtems4.10-run
-
-
</font> *** TEST PRINTK ***
This is a test of putk
<font color='#997700'>@@ -28,4 +25,7 @@
</font> %-12s of joel -- (joel )
%-4s of joel -- (joel)
%c of X -- (X)
<font color='#000088'>+
+getchark - NULL getchar method - return -1
+getchark - test getchar method - returns 0x35
</font> *** END OF TEST PRINTK ***
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1535/tests
* malloc04/init.c, malloc04/malloc04.scn: Address issues in test. A mix
of work by Ralf and Joel.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.202&r2=text&tr2=1.203&diff_format=h">M</a></td><td width='1%'>1.203</td><td width='100%'>testsuites/libtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc04/init.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>testsuites/libtests/malloc04/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc04/malloc04.scn.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>testsuites/libtests/malloc04/malloc04.scn</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.202 rtems/testsuites/libtests/ChangeLog:1.203
--- rtems/testsuites/libtests/ChangeLog:1.202 Wed Jul 14 10:59:37 2010
+++ rtems/testsuites/libtests/ChangeLog Wed Jul 14 18:23:12 2010
</font><font color='#997700'>@@ -1,5 +1,11 @@
</font> 2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#000088'>+ PR 1535/tests
+ * malloc04/init.c, malloc04/malloc04.scn: Address issues in test. A mix
+ of work by Ralf and Joel.
+
+2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font> * termios01/init.c, termios01/termios01.scn: Fully exercise tcsetattr.
2010-07-08 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#006600'>diff -u rtems/testsuites/libtests/malloc04/init.c:1.1 rtems/testsuites/libtests/malloc04/init.c:1.2
--- rtems/testsuites/libtests/malloc04/init.c:1.1 Thu Jul 8 15:11:48 2010
+++ rtems/testsuites/libtests/malloc04/init.c Wed Jul 14 18:23:12 2010
</font><font color='#997700'>@@ -13,6 +13,7 @@
</font> #include "test_support.h"
#include <rtems/libcsupport.h>
#include <rtems/malloc.h>
<font color='#000088'>+#include <errno.h>
</font>
char Malloc_Heap[ 128 ] CPU_STRUCTURE_ALIGNMENT;
int sbrk_count;
<font color='#997700'>@@ -25,12 +26,15 @@
</font> extern rtems_malloc_sbrk_functions_t rtems_malloc_sbrk_helpers_table;
size_t offset;
<font color='#000088'>+
</font> void * sbrk(ptrdiff_t incr)
{
void *p = (void *) -1;
printf( "sbrk(%td)\n", incr );
<font color='#880000'>- if ( offset + incr < sizeof(Malloc_Heap) ) {
</font><font color='#000088'>+ if ( sbrk_count == -1 ) {
+ p = (void *) (NULL - 2);
+ } else if ( offset + incr < sizeof(Malloc_Heap) ) {
</font> p = &Malloc_Heap[ offset ];
offset += incr;
} else {
<font color='#997700'>@@ -67,6 +71,16 @@
</font> p3 = malloc(48);
p4 = malloc(48);
<font color='#000088'>+ puts( "Initialize heap with some memory - return address out of heap" );
+ RTEMS_Malloc_Initialize( &Malloc_Heap[1], 64, 64 );
+ offset = 64;
+ sbrk_count = -1;
+ p1 = malloc( 127 );
+ rtems_test_assert( p1 == (void *) NULL );
+ rtems_test_assert( errno == ENOMEM );
+<span style="background-color: #FF0000"> </span>
+
+ RTEMS_Malloc_Initialize( Malloc_Heap, 64, 64 );
</font> puts( "Initialize heap with some unaligned memory" );
offset = 65;
sbrk_count = 0;
<font color='#997700'>@@ -101,7 +115,6 @@
</font> *RTEMS_Malloc_Heap = Heap_Holder;
rtems_malloc_sbrk_helpers = NULL;
<font color='#880000'>-
</font> puts( "*** END OF TEST MALLOC 04 ***" );
rtems_test_exit(0);
<font color='#006600'>diff -u rtems/testsuites/libtests/malloc04/malloc04.scn:1.1 rtems/testsuites/libtests/malloc04/malloc04.scn:1.2
--- rtems/testsuites/libtests/malloc04/malloc04.scn:1.1 Thu Jul 8 15:11:48 2010
+++ rtems/testsuites/libtests/malloc04/malloc04.scn Wed Jul 14 18:23:12 2010
</font><font color='#997700'>@@ -3,6 +3,9 @@
</font> sbrk(128)
sbrk(128)
sbrk(64)
<font color='#000088'>+Initialize heap with some memory - return address out of heap
+sbrk(128)
+sbrk(-128)
</font> Initialize heap with some unaligned memory
sbrk(128)
sbrk(128)
</pre>
<p> </p>
<a name='cs3'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add new test to exercise
malloc_get_statistics().
* malloc05/.cvsignore, malloc05/Makefile.am, malloc05/init.c,
malloc05/malloc05.doc, malloc05/malloc05.scn: New files.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.203&r2=text&tr2=1.204&diff_format=h">M</a></td><td width='1%'>1.204</td><td width='100%'>testsuites/libtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/Makefile.am.diff?r1=text&tr1=1.37&r2=text&tr2=1.38&diff_format=h">M</a></td><td width='1%'>1.38</td><td width='100%'>testsuites/libtests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/configure.ac.diff?r1=text&tr1=1.44&r2=text&tr2=1.45&diff_format=h">M</a></td><td width='1%'>1.45</td><td width='100%'>testsuites/libtests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc05/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/malloc05/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc05/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/malloc05/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc05/init.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/malloc05/init.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc05/malloc05.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/malloc05/malloc05.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloc05/malloc05.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/malloc05/malloc05.scn</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.203 rtems/testsuites/libtests/ChangeLog:1.204
--- rtems/testsuites/libtests/ChangeLog:1.203 Wed Jul 14 18:23:12 2010
+++ rtems/testsuites/libtests/ChangeLog Wed Jul 14 18:29:45 2010
</font><font color='#997700'>@@ -1,5 +1,12 @@
</font> 2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#000088'>+ * Makefile.am, configure.ac: Add new test to exercise
+ malloc_get_statistics().
+ * malloc05/.cvsignore, malloc05/Makefile.am, malloc05/init.c,
+ malloc05/malloc05.doc, malloc05/malloc05.scn: New files.
+
+2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font> PR 1535/tests
* malloc04/init.c, malloc04/malloc04.scn: Address issues in test. A mix
of work by Ralf and Joel.
<font color='#006600'>diff -u rtems/testsuites/libtests/Makefile.am:1.37 rtems/testsuites/libtests/Makefile.am:1.38
--- rtems/testsuites/libtests/Makefile.am:1.37 Thu Jul 8 15:11:48 2010
+++ rtems/testsuites/libtests/Makefile.am Wed Jul 14 18:29:45 2010
</font><font color='#997700'>@@ -7,7 +7,7 @@
</font> SUBDIRS = POSIX
SUBDIRS += bspcmdline01 cpuuse gxx01 \
<font color='#880000'>- malloctest malloc02 malloc03 malloc04 heapwalk \
</font><font color='#000088'>+ malloctest malloc02 malloc03 malloc04 malloc05 heapwalk \
</font> putenvtest monitor monitor02 rtmonuse stackchk stackchk01 \
termios termios01 termios02 termios03 termios04 termios05 termios06 \
rtems++ tztest block01 block02 block03 block04 block05 block06 block07 \
<font color='#006600'>diff -u rtems/testsuites/libtests/configure.ac:1.44 rtems/testsuites/libtests/configure.ac:1.45
--- rtems/testsuites/libtests/configure.ac:1.44 Thu Jul 8 15:11:48 2010
+++ rtems/testsuites/libtests/configure.ac Wed Jul 14 18:29:45 2010
</font><font color='#997700'>@@ -51,6 +51,7 @@
</font> malloc02/Makefile
malloc03/Makefile
malloc04/Makefile
<font color='#000088'>+malloc05/Makefile
</font> monitor/Makefile
monitor02/Makefile
putenvtest/Makefile
<font color='#006600'>diff -u /dev/null rtems/testsuites/libtests/malloc05/.cvsignore:1.1
--- /dev/null Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/malloc05/.cvsignore Wed Jul 14 18:29:45 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/libtests/malloc05/Makefile.am:1.1
--- /dev/null Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/malloc05/Makefile.am Wed Jul 14 18:29:45 2010
</font><font color='#997700'>@@ -0,0 +1,26 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = malloc05
+malloc05_SOURCES = init.c
+
+dist_rtems_tests_DATA = malloc05.scn
+dist_rtems_tests_DATA += malloc05.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 = $(malloc05_OBJECTS) $(malloc05_LDADD)
+LINK_LIBS = $(malloc05_LDLIBS)
+
+malloc05$(EXEEXT): $(malloc05_OBJECTS) $(malloc05_DEPENDENCIES)
+ @rm -f malloc05$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/libtests/malloc05/init.c:1.1
--- /dev/null Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/malloc05/init.c Wed Jul 14 18:29:45 2010
</font><font color='#997700'>@@ -0,0 +1,49 @@
</font><font color='#000088'>+/*
+ * 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 <rtems/malloc.h>
+
+rtems_task Init(
+ rtems_task_argument argument
+)
+{
+ int sc;
+ rtems_malloc_statistics_t stats;
+
+ puts( "\n\n*** TEST MALLOC05 ***" );
+
+ puts( "malloc_get_statistics( NULL ) - returns -1" );
+ sc = malloc_get_statistics( NULL );
+ rtems_test_assert( sc == -1 );
+
+ puts( "malloc_get_statistics( &stats ) - returns -0" );
+ sc = malloc_get_statistics( &stats );
+ rtems_test_assert( sc == 0 );
+
+ puts( "*** END OF TEST MALLOC05 ***" );
+
+ rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/libtests/malloc05/malloc05.doc:1.1
--- /dev/null Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/malloc05/malloc05.doc Wed Jul 14 18:29:45 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+#
+# $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: malloc05
+
+directives:
+
+ malloc_get_statistics
+
+concepts:
+
++ Fully exercise malloc_get_statistics.
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/libtests/malloc05/malloc05.scn:1.1
--- /dev/null Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/malloc05/malloc05.scn Wed Jul 14 18:29:45 2010
</font><font color='#997700'>@@ -0,0 +1,4 @@
</font><font color='#000088'>+*** TEST MALLOC05 ***
+malloc_get_statistics( NULL ) - returns -1
+malloc_get_statistics( &stats ) - returns -0
+*** END OF TEST MALLOC05 ***
</font></pre>
<p> </p>
<a name='cs4'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add new test to exercise devFS_Show().
* devfs01/.cvsignore, devfs01/Makefile.am, devfs01/devfs01.doc,
devfs01/devfs01.scn, devfs01/init.c: New files.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.204&r2=text&tr2=1.205&diff_format=h">M</a></td><td width='1%'>1.205</td><td width='100%'>testsuites/libtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/Makefile.am.diff?r1=text&tr1=1.38&r2=text&tr2=1.39&diff_format=h">M</a></td><td width='1%'>1.39</td><td width='100%'>testsuites/libtests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/configure.ac.diff?r1=text&tr1=1.45&r2=text&tr2=1.46&diff_format=h">M</a></td><td width='1%'>1.46</td><td width='100%'>testsuites/libtests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/devfs01/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/devfs01/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/devfs01/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/devfs01/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/devfs01/devfs01.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/devfs01/devfs01.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/devfs01/devfs01.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/devfs01/devfs01.scn</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/devfs01/init.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/libtests/devfs01/init.c</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.204 rtems/testsuites/libtests/ChangeLog:1.205
--- rtems/testsuites/libtests/ChangeLog:1.204 Wed Jul 14 18:29:45 2010
+++ rtems/testsuites/libtests/ChangeLog Wed Jul 14 18:53:49 2010
</font><font color='#997700'>@@ -1,5 +1,11 @@
</font> 2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#000088'>+ * Makefile.am, configure.ac: Add new test to exercise devFS_Show().
+ * devfs01/.cvsignore, devfs01/Makefile.am, devfs01/devfs01.doc,
+ devfs01/devfs01.scn, devfs01/init.c: New files.
+
+2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font> * Makefile.am, configure.ac: Add new test to exercise
malloc_get_statistics().
* malloc05/.cvsignore, malloc05/Makefile.am, malloc05/init.c,
<font color='#006600'>diff -u rtems/testsuites/libtests/Makefile.am:1.38 rtems/testsuites/libtests/Makefile.am:1.39
--- rtems/testsuites/libtests/Makefile.am:1.38 Wed Jul 14 18:29:45 2010
+++ rtems/testsuites/libtests/Makefile.am Wed Jul 14 18:53:49 2010
</font><font color='#997700'>@@ -6,7 +6,7 @@
</font>
SUBDIRS = POSIX
<font color='#880000'>-SUBDIRS += bspcmdline01 cpuuse gxx01 \
</font><font color='#000088'>+SUBDIRS += bspcmdline01 cpuuse devfs01 gxx01 \
</font> malloctest malloc02 malloc03 malloc04 malloc05 heapwalk \
putenvtest monitor monitor02 rtmonuse stackchk stackchk01 \
termios termios01 termios02 termios03 termios04 termios05 termios06 \
<font color='#006600'>diff -u rtems/testsuites/libtests/configure.ac:1.45 rtems/testsuites/libtests/configure.ac:1.46
--- rtems/testsuites/libtests/configure.ac:1.45 Wed Jul 14 18:29:45 2010
+++ rtems/testsuites/libtests/configure.ac Wed Jul 14 18:53:49 2010
</font><font color='#997700'>@@ -45,6 +45,7 @@
</font> block10/Makefile
bspcmdline01/Makefile
cpuuse/Makefile
<font color='#000088'>+devfs01/Makefile
</font> gxx01/Makefile
heapwalk/Makefile
malloctest/Makefile
<font color='#006600'>diff -u /dev/null rtems/testsuites/libtests/devfs01/.cvsignore:1.1
--- /dev/null Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/devfs01/.cvsignore Wed Jul 14 18:53:49 2010
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/libtests/devfs01/Makefile.am:1.1
--- /dev/null Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/devfs01/Makefile.am Wed Jul 14 18:53:49 2010
</font><font color='#997700'>@@ -0,0 +1,26 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = devfs01
+devfs01_SOURCES = init.c
+
+dist_rtems_tests_DATA = devfs01.scn
+dist_rtems_tests_DATA += devfs01.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 = $(devfs01_OBJECTS) $(devfs01_LDADD)
+LINK_LIBS = $(devfs01_LDLIBS)
+
+devfs01$(EXEEXT): $(devfs01_OBJECTS) $(devfs01_DEPENDENCIES)
+ @rm -f devfs01$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/libtests/devfs01/devfs01.doc:1.1
--- /dev/null Wed Jul 14 19:10:52 2010
+++ rtems/testsuites/libtests/devfs01/devfs01.doc Wed Jul 14 18:53:49 2010
</font><font color='#997700'>@@ -0,0 +1,22 @@
</font><font color='#000088'>+#
+# $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: devfs01
+
+directives:
+
+ devFS_Show
+
+concepts:
+
++ Fully exercise devFS_Show
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/libtests/devfs01/devfs01.scn:1.1
--- /dev/null Wed Jul 14 19:10:53 2010
+++ rtems/testsuites/libtests/devfs01/devfs01.scn Wed Jul 14 18:53:49 2010
</font><font color='#997700'>@@ -0,0 +1,7 @@
</font><font color='#000088'>+*** TEST DEVFS01 ***
+devFS_Show - OK
+/dev/console_b 0 1
+/dev/console 0 0
+devFS_Show - no device table - EFAULT
+devFS_Show - devices - OK
+*** END OF TEST DEVFS01 ***
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/libtests/devfs01/init.c:1.1
--- /dev/null Wed Jul 14 19:10:53 2010
+++ rtems/testsuites/libtests/devfs01/init.c Wed Jul 14 18:53:49 2010
</font><font color='#997700'>@@ -0,0 +1,73 @@
</font><font color='#000088'>+/*
+ * 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 <rtems/devfs.h>
+#include <errno.h>
+
+rtems_task Init(
+ rtems_task_argument argument
+)
+{
+ int sc;
+ int size;
+ rtems_filesystem_location_info_t *temp_loc;
+ rtems_device_name_t *device_name_table;
+
+ puts( "\n\n*** TEST DEVFS01 ***" );
+
+ puts( "devFS_Show - OK" );
+ sc = devFS_Show();
+ rtems_test_assert( sc == 0 );
+
+ /* save original node access information */
+ temp_loc = &rtems_filesystem_root;
+ device_name_table = (rtems_device_name_t *)temp_loc->node_access;
+ temp_loc->node_access = NULL;
+
+ puts( "devFS_Show - no device table - EFAULT" );
+ sc = devFS_Show();
+ rtems_test_assert( sc == -1 );
+ rtems_test_assert( errno == EFAULT );
+
+ /* restore node access information */
+ temp_loc->node_access = device_name_table;
+
+ /* save original device table size information */
+ size = rtems_device_table_size;
+ rtems_device_table_size = 0;
+ puts( "devFS_Show - devices - OK" );
+ sc = devFS_Show();
+ rtems_test_assert( sc == 0 );
+
+ /* restore original device table size information */
+ rtems_device_table_size = size;
+<span style="background-color: #FF0000"> </span>
+ puts( "*** END OF TEST DEVFS01 ***" );
+
+ rtems_test_exit(0);
+}
+
+/* configuration information */
+
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */
</font></pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>