<!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-16)</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-16 Bharath Suri <bharath.s.jois@gmail.com>

        PR 1617/testing
        * spmountmgr01/init.c, spmountmgr01/spmountmgr01.scn,
        spmountmgr01/spmountmgr01.doc: Added cases to exercise
        mount-mktgt.c.
</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.404&r2=text&tr2=1.405&diff_format=h">M</a></td><td width='1%'>1.405</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/spmountmgr01/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/sptests/spmountmgr01/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spmountmgr01/spmountmgr01.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/spmountmgr01/spmountmgr01.doc</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spmountmgr01/spmountmgr01.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/sptests/spmountmgr01/spmountmgr01.scn</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.404 rtems/testsuites/sptests/ChangeLog:1.405
--- rtems/testsuites/sptests/ChangeLog:1.404    Thu Jul 15 08:53:27 2010
+++ rtems/testsuites/sptests/ChangeLog  Fri Jul 16 10:01:11 2010
</font><font color='#997700'>@@ -1,3 +1,10 @@
</font><font color='#000088'>+2010-07-16    Bharath Suri <bharath.s.jois@gmail.com>
+
+       PR 1617/testing
+       * spmountmgr01/init.c, spmountmgr01/spmountmgr01.scn,
+       spmountmgr01/spmountmgr01.doc: Added cases to exercise
+       mount-mktgt.c.
+
</font> 2010-07-15        Bharath Suri <bharath.s.jois@gmail.com>
 
        PR 1617/testing

<font color='#006600'>diff -u rtems/testsuites/sptests/spmountmgr01/init.c:1.1 rtems/testsuites/sptests/spmountmgr01/init.c:1.2
--- rtems/testsuites/sptests/spmountmgr01/init.c:1.1    Thu Jul 15 08:53:28 2010
+++ rtems/testsuites/sptests/spmountmgr01/init.c        Fri Jul 16 10:01:11 2010
</font><font color='#997700'>@@ -50,6 +50,27 @@
</font>   status = rtems_filesystem_register( "fs", fs_mount );
   rtems_test_assert( status == 0 );
 
<font color='#000088'>+  puts( "Init - attempt to make target(NULL) and mount - expect EINVAL" );
+  status = mount_and_make_target_path(
+            NULL,
+            NULL,
+            "fs",
+            0,
+            NULL );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EINVAL );
+
+  puts( "Init - attempt to make target and mount - expect EINVAL" );
+  status = mount_and_make_target_path(
+            NULL,
+            "/tmp",
+            "fs",
+            2,
+            NULL );
+  rtems_test_assert( status == -1 );
+  rtems_test_assert( errno == EINVAL );
+
+<span style="background-color: #FF0000">            </span>
</font>   puts( "Init - register filesystem fs - expect EINVAL" );
   status = rtems_filesystem_register( "fs", fs_mount );
   rtems_test_assert( status == -1 );

<font color='#006600'>diff -u rtems/testsuites/sptests/spmountmgr01/spmountmgr01.doc:1.1 rtems/testsuites/sptests/spmountmgr01/spmountmgr01.doc:1.2
--- rtems/testsuites/sptests/spmountmgr01/spmountmgr01.doc:1.1  Thu Jul 15 08:53:28 2010
+++ rtems/testsuites/sptests/spmountmgr01/spmountmgr01.doc      Fri Jul 16 10:01:11 2010
</font><font color='#997700'>@@ -17,9 +17,13 @@
</font> 
 + rtems_filesystem_register
 + rtems_filesystem_unregister
<font color='#000088'>++ mount_and_make_target_path
</font> 
 concepts:
 
<font color='#880000'>-+ Exercise the routines of mount-mgr.c under libcsupport.
-+ These routines are mostly to register / unregister new filesytem
</font><font color='#000088'>++ Exercise the routines of mount-mgr.c and mount-mktgt.c under libcsupport.
++ The routines in mount-mgr.c are mostly to register / unregister new filesytem
</font>   for later use.
<font color='#000088'>++ The routines in mount-mktgt.c are used to mount a filesystem at a
+target path. If the target path does not exist, it is created and then
+the mount is processed
</font>
<font color='#006600'>diff -u rtems/testsuites/sptests/spmountmgr01/spmountmgr01.scn:1.1 rtems/testsuites/sptests/spmountmgr01/spmountmgr01.scn:1.2
--- rtems/testsuites/sptests/spmountmgr01/spmountmgr01.scn:1.1  Thu Jul 15 08:53:28 2010
+++ rtems/testsuites/sptests/spmountmgr01/spmountmgr01.scn      Fri Jul 16 10:01:11 2010
</font><font color='#997700'>@@ -1,8 +1,11 @@
</font><font color='#000088'>+
</font> *** 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
<font color='#000088'>+Init - attempt to make target(NULL) and mount - expect EINVAL
+Init - attempt to make target and mount - expect EINVAL
</font> Init - register filesystem fs - expect EINVAL
 Init - register filesystem bfs -- OK
 Init - register filesystem bfs - expect EINVAL
</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>