<!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-15)</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>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
* malloctest/init.c: Added test for
rtems_heap_allocate_aligned_with_boundary().
</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.205&r2=text&tr2=1.206&diff_format=h">M</a></td><td width='1%'>1.206</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/malloctest/init.c.diff?r1=text&tr1=1.40&r2=text&tr2=1.41&diff_format=h">M</a></td><td width='1%'>1.41</td><td width='100%'>testsuites/libtests/malloctest/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.205 rtems/testsuites/libtests/ChangeLog:1.206
--- rtems/testsuites/libtests/ChangeLog:1.205 Wed Jul 14 18:53:49 2010
+++ rtems/testsuites/libtests/ChangeLog Thu Jul 15 08:36:25 2010
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * malloctest/init.c: Added test for
+ rtems_heap_allocate_aligned_with_boundary().
+
</font> 2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add new test to exercise devFS_Show().
<font color='#006600'>diff -u rtems/testsuites/libtests/malloctest/init.c:1.40 rtems/testsuites/libtests/malloctest/init.c:1.41
--- rtems/testsuites/libtests/malloctest/init.c:1.40 Mon Jun 28 12:05:25 2010
+++ rtems/testsuites/libtests/malloctest/init.c Thu Jul 15 08:36:25 2010
</font><font color='#997700'>@@ -14,7 +14,7 @@
</font> * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
<font color='#880000'>- * Copyright (c) 2009 embedded brains GmbH.
</font><font color='#000088'>+ * Copyright (c) 2009, 2010 embedded brains GmbH.
</font> *
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
<font color='#997700'>@@ -1023,6 +1023,20 @@
</font> rtems_test_assert( rc == false );
}
<font color='#000088'>+static void test_rtems_heap_allocate_aligned_with_boundary(void)
+{
+ void *p = NULL;
+
+ p = rtems_heap_allocate_aligned_with_boundary(1, 1, 1);
+ rtems_test_assert( p != NULL );
+ free(p);
+
+ _Thread_Disable_dispatch();
+ p = rtems_heap_allocate_aligned_with_boundary(1, 1, 1);
+ _Thread_Enable_dispatch();
+ rtems_test_assert( p == NULL );
+}
+
</font> /*
* A simple test of posix_memalign
*/
<font color='#997700'>@@ -1108,6 +1122,7 @@
</font> test_heap_extend();
test_heap_info();
test_protected_heap_info();
<font color='#000088'>+ test_rtems_heap_allocate_aligned_with_boundary();
</font>
test_posix_memalign();
</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-15 Bharath Suri <bharath.s.jois@gmail.com>
PR 1617/testing
* spmountmgr01/init.c, spmountmgr01/Makefile.am,
spmountmgr/.cvsignore, spmountmgr01/spmountmgr01.doc,
spmountmgr01/spmountmgr01.scn: New test which improves coverage
of mount-mgr.c under libcsupport.
* Makefile.am, configure.ac: Changes to accommodate the new test.
</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.403&r2=text&tr2=1.404&diff_format=h">M</a></td><td width='1%'>1.404</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/Makefile.am.diff?r1=text&tr1=1.100&r2=text&tr2=1.101&diff_format=h">M</a></td><td width='1%'>1.101</td><td width='100%'>testsuites/sptests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/configure.ac.diff?r1=text&tr1=1.105&r2=text&tr2=1.106&diff_format=h">M</a></td><td width='1%'>1.106</td><td width='100%'>testsuites/sptests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spmountmgr01/.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/sptests/spmountmgr01/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spmountmgr01/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/sptests/spmountmgr01/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spmountmgr01/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/sptests/spmountmgr01/init.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spmountmgr01/spmountmgr01.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/sptests/spmountmgr01/spmountmgr01.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spmountmgr01/spmountmgr01.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/sptests/spmountmgr01/spmountmgr01.scn</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.403 rtems/testsuites/sptests/ChangeLog:1.404
--- rtems/testsuites/sptests/ChangeLog:1.403 Wed Jul 14 18:17:48 2010
+++ rtems/testsuites/sptests/ChangeLog Thu Jul 15 08:53:27 2010
</font><font color='#997700'>@@ -1,3 +1,12 @@
</font><font color='#000088'>+2010-07-15 Bharath Suri <bharath.s.jois@gmail.com>
+
+ PR 1617/testing
+ * spmountmgr01/init.c, spmountmgr01/Makefile.am,
+ spmountmgr/.cvsignore, spmountmgr01/spmountmgr01.doc,
+ spmountmgr01/spmountmgr01.scn: New test which improves coverage
+ of mount-mgr.c under libcsupport.
+ * Makefile.am, configure.ac: Changes to accommodate the new test.
+
</font> 2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* spprintk/init.c, spprintk/spprintk.doc, spprintk/spprintk.scn: Clean
<font color='#006600'>diff -u rtems/testsuites/sptests/Makefile.am:1.100 rtems/testsuites/sptests/Makefile.am:1.101
--- rtems/testsuites/sptests/Makefile.am:1.100 Wed Jul 14 11:02:40 2010
+++ rtems/testsuites/sptests/Makefile.am Thu Jul 15 08:53:27 2010
</font><font color='#997700'>@@ -28,7 +28,7 @@
</font> spintrcritical05 spintrcritical06 spintrcritical07 spintrcritical08 \
spintrcritical09 spintrcritical10 spintrcritical11 spintrcritical12 \
spintrcritical13 spintrcritical14 spintrcritical15 spintrcritical16 \
<font color='#880000'>- spintrcritical17 spmkdir
</font><font color='#000088'>+ spintrcritical17 spmkdir spmountmgr01
</font>
DIST_SUBDIRS = $(SUBDIRS) spfatal_support spintrcritical_support
EXTRA_DIST = spfatal_support/init.c spfatal_support/system.h
<font color='#006600'>diff -u rtems/testsuites/sptests/configure.ac:1.105 rtems/testsuites/sptests/configure.ac:1.106
--- rtems/testsuites/sptests/configure.ac:1.105 Wed Jul 14 11:02:40 2010
+++ rtems/testsuites/sptests/configure.ac Thu Jul 15 08:53:27 2010
</font><font color='#997700'>@@ -149,6 +149,7 @@
</font> spintrcritical16/Makefile
spintrcritical17/Makefile
spmkdir/Makefile
<font color='#000088'>+spmountmgr01/Makefile
</font> spnotepad01/Makefile
spobjgetnext/Makefile
spprintk/Makefile
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spmountmgr01/.cvsignore:1.1
--- /dev/null Thu Jul 15 09:10:15 2010
+++ rtems/testsuites/sptests/spmountmgr01/.cvsignore Thu Jul 15 08:53:27 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/sptests/spmountmgr01/Makefile.am:1.1
--- /dev/null Thu Jul 15 09:10:15 2010
+++ rtems/testsuites/sptests/spmountmgr01/Makefile.am Thu Jul 15 08:53:28 2010
</font><font color='#997700'>@@ -0,0 +1,26 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = spmountmgr01
+spmountmgr01_SOURCES = init.c
+
+dist_rtems_tests_DATA = spmountmgr01.scn
+dist_rtems_tests_DATA += spmountmgr01.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 = $(spmountmgr01_OBJECTS) $(spmountmgr01_LDADD)
+LINK_LIBS = $(spmountmgr01_LDLIBS)
+
+spmountmgr01$(EXEEXT): $(spmountmgr01_OBJECTS) $(spmountmgr01_DEPENDENCIES)
+ @rm -f spmountmgr01$(EXEEXT)
+ $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spmountmgr01/init.c:1.1
--- /dev/null Thu Jul 15 09:10:15 2010
+++ rtems/testsuites/sptests/spmountmgr01/init.c Thu Jul 15 08:53:28 2010
</font><font color='#997700'>@@ -0,0 +1,105 @@
</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/score/heap.h>
+#include <errno.h>
+#include <rtems/libio_.h>
+
+extern Heap_Control *RTEMS_Malloc_Heap;
+
+int fs_mount( rtems_filesystem_mount_table_entry_t *mt_entry,
+ const void *data )
+{
+ return 0;
+}
+
+rtems_task Init(
+ rtems_task_argument argument
+)
+{
+ int status = 0;
+ void *alloc_ptr = (void *)0;
+ Heap_Information_block Info;
+<span style="background-color: #FF0000"> </span>
+ puts( "\n\n*** TEST MOUNT MANAGER ROUTINE - 01 ***" );
+
+ puts( "Init - allocating most of heap -- OK" );
+ _Heap_Get_information(RTEMS_Malloc_Heap, &Info);
+ alloc_ptr = malloc( Info.Free.largest - 4 );
+ rtems_test_assert( alloc_ptr != NULL );
+
+ puts( "Init - attempt to register filesystem fs - expect ENOMEM" );
+ status = rtems_filesystem_register( "fs", fs_mount );
+ rtems_test_assert( status == -1 );
+ rtems_test_assert( errno == ENOMEM );
+
+ puts( "Init - freeing allocated memory -- OK" );
+ free( alloc_ptr );
+
+ puts( "Init - register filesystem fs -- OK" );
+ status = rtems_filesystem_register( "fs", fs_mount );
+ rtems_test_assert( status == 0 );
+
+ puts( "Init - register filesystem fs - expect EINVAL" );
+ status = rtems_filesystem_register( "fs", fs_mount );
+ rtems_test_assert( status == -1 );
+ rtems_test_assert( errno == EINVAL );
+
+ puts( "Init - register filesystem bfs -- OK" );
+ status = rtems_filesystem_register( "bfs", fs_mount );
+ rtems_test_assert( status == 0 );
+
+ puts( "Init - register filesystem bfs - expect EINVAL" );
+ status = rtems_filesystem_register( "bfs", fs_mount );
+ rtems_test_assert( status == -1 );
+ rtems_test_assert( errno == EINVAL );
+<span style="background-color: #FF0000"> </span>
+ puts( "Init - attempt to unregister with bad args - expect EINVAL" );
+ status = rtems_filesystem_unregister( NULL );
+ rtems_test_assert( status == -1 );
+ rtems_test_assert( errno == EINVAL );
+
+ puts( "Init - attempt to unregister fs -- OK" );
+ status = rtems_filesystem_unregister( "fs" );
+ rtems_test_assert( status == 0 );
+<span style="background-color: #FF0000"> </span>
+ puts( "Init - attempt to unregister fs again - expect ENOENT" );
+ status = rtems_filesystem_unregister( "fs" );
+ rtems_test_assert( status == -1 );
+ rtems_test_assert( errno == ENOENT );
+
+ puts( "Init - attempt to unregister bfs -- OK" );
+ status = rtems_filesystem_unregister( "bfs" );
+ rtems_test_assert( status == 0 );
+<span style="background-color: #FF0000"> </span>
+ puts( "Init - attempt to unregister bfs again - expect ENOENT" );
+ status = rtems_filesystem_unregister( "bfs" );
+ rtems_test_assert( status == -1 );
+ rtems_test_assert( errno == ENOENT );
+
+ puts( "*** END OF TEST MOUNT MANAGER ROUTINE - 01 ***" );
+ 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_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+
+#include <rtems/confdefs.h>
+/* end of file */
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spmountmgr01/spmountmgr01.doc:1.1
--- /dev/null Thu Jul 15 09:10:15 2010
+++ rtems/testsuites/sptests/spmountmgr01/spmountmgr01.doc Thu Jul 15 08:53:28 2010
</font><font color='#997700'>@@ -0,0 +1,25 @@
</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: spmountmgr01
+
+directives:
+
++ rtems_filesystem_register
++ rtems_filesystem_unregister
+
+concepts:
+
++ Exercise the routines of mount-mgr.c under libcsupport.
++ These routines are mostly to register / unregister new filesytem
+ for later use.
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/spmountmgr01/spmountmgr01.scn:1.1
--- /dev/null Thu Jul 15 09:10:15 2010
+++ rtems/testsuites/sptests/spmountmgr01/spmountmgr01.scn Thu Jul 15 08:53:28 2010
</font><font color='#997700'>@@ -0,0 +1,14 @@
</font><font color='#000088'>+*** TEST MOUNT MANAGER ROUTINE - 01 ***
+Init - allocating most of heap -- OK
+Init - attempt to register filesystem fs - expect ENOMEM
+Init - freeing allocated memory -- OK
+Init - register filesystem fs -- OK
+Init - register filesystem fs - expect EINVAL
+Init - register filesystem bfs -- OK
+Init - register filesystem bfs - expect EINVAL
+Init - attempt to unregister with bad args - expect EINVAL
+Init - attempt to unregister fs -- OK
+Init - attempt to unregister fs again - expect ENOENT
+Init - attempt to unregister bfs -- OK
+Init - attempt to unregister bfs again - expect ENOENT
+*** END OF TEST MOUNT MANAGER ROUTINE - 01 ***
</font></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-15 Bharath Suri <bharath.s.jois@gmail.com>
PR 1617/testing
* malloctest/init.c: Added new case to exercise _realloc_r.
</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.206&r2=text&tr2=1.207&diff_format=h">M</a></td><td width='1%'>1.207</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/malloctest/init.c.diff?r1=text&tr1=1.41&r2=text&tr2=1.42&diff_format=h">M</a></td><td width='1%'>1.42</td><td width='100%'>testsuites/libtests/malloctest/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.206 rtems/testsuites/libtests/ChangeLog:1.207
--- rtems/testsuites/libtests/ChangeLog:1.206 Thu Jul 15 08:36:25 2010
+++ rtems/testsuites/libtests/ChangeLog Thu Jul 15 08:54:54 2010
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-07-15 Bharath Suri <bharath.s.jois@gmail.com>
+
+ PR 1617/testing
+ * malloctest/init.c: Added new case to exercise _realloc_r.
+
</font> 2010-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
* malloctest/init.c: Added test for
<font color='#006600'>diff -u rtems/testsuites/libtests/malloctest/init.c:1.41 rtems/testsuites/libtests/malloctest/init.c:1.42
--- rtems/testsuites/libtests/malloctest/init.c:1.41 Thu Jul 15 08:36:25 2010
+++ rtems/testsuites/libtests/malloctest/init.c Thu Jul 15 08:54:54 2010
</font><font color='#997700'>@@ -112,6 +112,8 @@
</font> * Realloc with a bad pointer to force a point
*/
p4 = realloc( test_realloc, 32 );
<font color='#000088'>+
+ p4 = _realloc_r( NULL, NULL, 1 );
</font> }
#define TEST_HEAP_SIZE 2048
</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-15 Bharath Suri <bharath.s.jois@gmail.com>
PR 1617/testing
* psxfile01/test.c, psxfile01/psxfile01.scn: Added new cases to
exercise_link_r and _unlink_r
* psxstat/test.c, psxstat/psxstat.scn: Added new cases to exercise
_lstat_r and _stat_r.
* psxtime/test.c, psxtime/psxtime.scn: Added new cases to exercise
_gettimeofday.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.293&r2=text&tr2=1.294&diff_format=h">M</a></td><td width='1%'>1.294</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxfile01/psxfile01.scn.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>testsuites/psxtests/psxfile01/psxfile01.scn</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxfile01/test.c.diff?r1=text&tr1=1.26&r2=text&tr2=1.27&diff_format=h">M</a></td><td width='1%'>1.27</td><td width='100%'>testsuites/psxtests/psxfile01/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxstat/psxstat.scn.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>testsuites/psxtests/psxstat/psxstat.scn</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxstat/test.c.diff?r1=text&tr1=1.29&r2=text&tr2=1.30&diff_format=h">M</a></td><td width='1%'>1.30</td><td width='100%'>testsuites/psxtests/psxstat/test.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxtime/psxtime.scn.diff?r1=text&tr1=1.7&r2=text&tr2=1.8&diff_format=h">M</a></td><td width='1%'>1.8</td><td width='100%'>testsuites/psxtests/psxtime/psxtime.scn</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxtime/test.c.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>testsuites/psxtests/psxtime/test.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.293 rtems/testsuites/psxtests/ChangeLog:1.294
--- rtems/testsuites/psxtests/ChangeLog:1.293 Thu Jul 15 07:15:56 2010
+++ rtems/testsuites/psxtests/ChangeLog Thu Jul 15 08:59:25 2010
</font><font color='#997700'>@@ -1,3 +1,13 @@
</font><font color='#000088'>+2010-07-15 Bharath Suri <bharath.s.jois@gmail.com>
+
+ PR 1617/testing
+ * psxfile01/test.c, psxfile01/psxfile01.scn: Added new cases to
+ exercise_link_r and _unlink_r
+ * psxstat/test.c, psxstat/psxstat.scn: Added new cases to exercise
+ _lstat_r and _stat_r.
+ * psxtime/test.c, psxtime/psxtime.scn: Added new cases to exercise
+ _gettimeofday.
+
</font> 2010-07-16 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* psxstat/test.c: Avoid NULL pointer access.
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxfile01/psxfile01.scn:1.11 rtems/testsuites/psxtests/psxfile01/psxfile01.scn:1.12
--- rtems/testsuites/psxtests/psxfile01/psxfile01.scn:1.11 Thu Jul 8 14:37:00 2010
+++ rtems/testsuites/psxtests/psxfile01/psxfile01.scn Thu Jul 15 08:59:25 2010
</font><font color='#997700'>@@ -1,4 +1,3 @@
</font><font color='#880000'>-
</font> *** FILE TEST 1 ***
*************** Dump of Entire IMFS ***************
/
<font color='#997700'>@@ -49,6 +48,8 @@
</font> create /tmp/john
tcdrain /tmp/john
Attempt to create a file, open in read-only mode and truncate it
<font color='#000088'>+Exercise the reentrant version _link_r -- Expect EFAULT
+Unlink /tmp/bha using the reentrant version -- OK
</font> mknod /tmp/joel
(0)the first write!!!
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxfile01/test.c:1.26 rtems/testsuites/psxtests/psxfile01/test.c:1.27
--- rtems/testsuites/psxtests/psxfile01/test.c:1.26 Thu Jul 8 14:37:01 2010
+++ rtems/testsuites/psxtests/psxfile01/test.c Thu Jul 15 08:59:25 2010
</font><font color='#997700'>@@ -30,6 +30,7 @@
</font> #include <errno.h>
#include <string.h>
#include <ctype.h>
<font color='#000088'>+#include <reent.h>
</font> #include <rtems/imfs.h>
#include <rtems.h>
<font color='#997700'>@@ -338,7 +339,13 @@
</font> rtems_test_assert( fd == -1 );
rtems_test_assert( errno == EINVAL );
<font color='#880000'>- status = unlink( "/tmp/bha" );
</font><font color='#000088'>+ puts( "Exercise the reentrant version _link_r -- Expect EFAULT" );
+ status = _link_r( NULL, NULL, NULL );
+ rtems_test_assert( status == -1 );
+ rtems_test_assert( errno == EFAULT );
+
+ puts( "Unlink /tmp/bha using the reentrant version -- OK" );
+ status = _unlink_r( NULL, "/tmp/bha" );
</font> rtems_test_assert( status == 0 );
/*
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxstat/psxstat.scn:1.11 rtems/testsuites/psxtests/psxstat/psxstat.scn:1.12
--- rtems/testsuites/psxtests/psxstat/psxstat.scn:1.11 Tue Jul 13 16:13:12 2010
+++ rtems/testsuites/psxtests/psxstat/psxstat.scn Thu Jul 15 08:59:25 2010
</font><font color='#997700'>@@ -1708,6 +1708,8 @@
</font> create /tmp -- OK
statvfs, with valid path - expect ENOTSUP
statvfs tested!
<font color='#000088'>+Exercise the reentrant version - _stat_r - expect EFAULT
+Exercise the reentrant version - _lstat_r - expect EFAULT
</font>
*** END OF STAT TEST 01 ***
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxstat/test.c:1.29 rtems/testsuites/psxtests/psxstat/test.c:1.30
--- rtems/testsuites/psxtests/psxstat/test.c:1.29 Thu Jul 15 07:15:56 2010
+++ rtems/testsuites/psxtests/psxstat/test.c Thu Jul 15 08:59:25 2010
</font><font color='#997700'>@@ -5,7 +5,7 @@
</font> * This test also exercises lstat() and lchown() when symlinks are
* involved.
*
<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'>@@ -23,6 +23,7 @@
</font> #include <unistd.h>
#include <errno.h>
#include <string.h>
<font color='#000088'>+#include <reent.h>
</font> #include <rtems.h>
#include <rtems/libio.h>
#include <rtems/imfs.h>
<font color='#997700'>@@ -31,6 +32,7 @@
</font> #define MAXSYMLINK 5 /* There needs to be a better way of getting this. */
#define TIMEOUT_VALUE ( 5 * rtems_clock_get_ticks_per_second() )
<font color='#000088'>+int _lstat_r(struct _reent *, const char *, struct stat *);
</font>
/*
* List of files which should exist.
<font color='#997700'>@@ -927,6 +929,16 @@
</font>
test_statvfs();
<font color='#000088'>+ puts( "Exercise the reentrant version - _stat_r - expect EFAULT" );
+ status = _stat_r( NULL, NULL, NULL );
+ rtems_test_assert( status == -1 );
+ rtems_test_assert( errno == EFAULT );
+
+ puts( "Exercise the reentrant version - _lstat_r - expect EFAULT" );
+ status = _lstat_r( NULL, NULL, NULL );
+ rtems_test_assert( status == -1 );
+ rtems_test_assert( errno == EFAULT );
+
</font> puts( "\n\n*** END OF STAT TEST 01 ***" );
rtems_test_exit(0);
}
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxtime/psxtime.scn:1.7 rtems/testsuites/psxtests/psxtime/psxtime.scn:1.8
--- rtems/testsuites/psxtests/psxtime/psxtime.scn:1.7 Mon Jun 28 16:00:15 2010
+++ rtems/testsuites/psxtests/psxtime/psxtime.scn Thu Jul 15 08:59:25 2010
</font><font color='#997700'>@@ -1,5 +1,7 @@
</font><font color='#000088'>+
</font> *** POSIX TIME OF DAY TEST ***
gettimeofday( NULL, NULL ) - EFAULT
<font color='#000088'>+_gettimeofday( NULL, NULL ) - EFAULT
</font> rtems_clock_set 12:45:00 01/01/1988
adjtime - NULL delta - EINVAL
adjtime - delta out of range - EINVAL
<font color='#997700'>@@ -9,7 +11,7 @@
</font> adjtime - delta of one second forward
adjtime - delta of almost two seconds forward
adjtime - delta of almost one second forward which bumps second
<font color='#880000'>-rtems_clock_get_tod 12:45:04 01/01/1988
</font><font color='#000088'>+rtems_clock_get_tod 12:45:05 01/01/1988
</font> rtems_clock_set 12:45:00 01/01/1988
rtems_clock_get_tod 12:45:00 01/01/1988
gettimeofday: Fri Jan 1 12:45:00 1988
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxtime/test.c:1.17 rtems/testsuites/psxtests/psxtime/test.c:1.18
--- rtems/testsuites/psxtests/psxtime/test.c:1.17 Mon Jun 28 16:00:15 2010
+++ rtems/testsuites/psxtests/psxtime/test.c Thu Jul 15 08:59:25 2010
</font><font color='#997700'>@@ -27,6 +27,8 @@
</font> extern int adjtime(const struct timeval *delta, struct timeval *olddelta);
#endif
<font color='#000088'>+extern int _gettimeofday(struct timeval *__p, void *__tz);
+
</font> void test_adjtime(void);
void check_a_tod(
rtems_time_of_day *the_tod
<font color='#997700'>@@ -202,6 +204,11 @@
</font> rtems_test_assert( sc == -1 );
rtems_test_assert( errno == EFAULT );
<font color='#000088'>+ puts( "_gettimeofday( NULL, NULL ) - EFAULT" );
+ sc = _gettimeofday( NULL, NULL );
+ rtems_test_assert( sc == -1 );
+ rtems_test_assert( errno == EFAULT );
+
</font> test_adjtime();
/*
</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>