<!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-01)</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-01 Joel Sherrill <joel.sherrilL@OARcorp.com>
* psxfile01/Makefile.am, psxfile01/psxfile01.scn, psxfile01/test.c:
Remove tests which put NULL entries in file handlers.
</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.280&r2=text&tr2=1.281&diff_format=h">M</a></td><td width='1%'>1.281</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/Makefile.am.diff?r1=text&tr1=1.27&r2=text&tr2=1.28&diff_format=h">M</a></td><td width='1%'>1.28</td><td width='100%'>testsuites/psxtests/psxfile01/Makefile.am</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.9&r2=text&tr2=1.10&diff_format=h">M</a></td><td width='1%'>1.10</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.24&r2=text&tr2=1.25&diff_format=h">M</a></td><td width='1%'>1.25</td><td width='100%'>testsuites/psxtests/psxfile01/test.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.280 rtems/testsuites/psxtests/ChangeLog:1.281
--- rtems/testsuites/psxtests/ChangeLog:1.280 Thu Jul 1 12:26:27 2010
+++ rtems/testsuites/psxtests/ChangeLog Thu Jul 1 16:15:07 2010
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-07-01 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ * psxfile01/Makefile.am, psxfile01/psxfile01.scn, psxfile01/test.c:
+ Remove tests which put NULL entries in file handlers.
+
</font> 2010-07-01 Bharath Suri <bharath.s.jois@gmail.com>
PR 1598/testing
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxfile01/Makefile.am:1.27 rtems/testsuites/psxtests/psxfile01/Makefile.am:1.28
--- rtems/testsuites/psxtests/psxfile01/Makefile.am:1.27 Wed Jun 23 17:49:58 2010
+++ rtems/testsuites/psxtests/psxfile01/Makefile.am Thu Jul 1 16:15:07 2010
</font><font color='#997700'>@@ -2,8 +2,6 @@
</font> ## $Id$
##
<font color='#880000'>-MANAGERS = all
-
</font> rtems_tests_PROGRAMS = psxfile01
psxfile01_SOURCES = main.c test.c test_cat.c test_extend.c test_write.c ../include/pmacros.h
<font color='#997700'>@@ -13,8 +11,6 @@
</font> include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
<font color='#880000'>-psxfile01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
-
</font> AM_CPPFLAGS += -I$(top_srcdir)/include
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxfile01/psxfile01.scn:1.9 rtems/testsuites/psxtests/psxfile01/psxfile01.scn:1.10
--- rtems/testsuites/psxtests/psxfile01/psxfile01.scn:1.9 Mon May 17 12:56:12 2010
+++ rtems/testsuites/psxtests/psxfile01/psxfile01.scn Thu Jul 1 16:15:07 2010
</font><font color='#997700'>@@ -1,16 +1,15 @@
</font><font color='#880000'>-Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory
-Initialized console on port COM1 9600-8-N-1
</font><font color='#000088'>+sparc-rtems4.11-run is /opt/rtems-4.11/bin/sparc-rtems4.11-run
</font>
<font color='#880000'>-<span style="background-color: #FF0000"><CR></span>
</font>
*** FILE TEST 1 ***
*************** Dump of Entire IMFS ***************
/
....dev/
........console (device 0, 0)
<font color='#000088'>+........console_b (device 0, 1)
</font> *************** End of Dump ***************
stat of /dev/console
<font color='#880000'>-....st_dev (0x0:0x0)
</font><font color='#000088'>+....st_dev (0xfffe:0x0)
</font> ....st_ino 3 may vary by small amount
....mode = 00020755
....nlink = 1
<font color='#997700'>@@ -70,24 +69,12 @@
</font> changing dir to /
attempt to rename across filesystem, with old path having a parent node
attempt to rename tmp/joel to /imfs/test/joel
<font color='#880000'>-Unmounting /imfs
-Mounting filesystem @ /imfs with no support for evalformake
-change directory to /imfs
-exercise _rename_r, with target on /imfs - expected ENOTSUP
-attempt to rename /tmp/joel to joel
-change directory to /
-Mounting filesystem @ /imfs with no support for rename
-creating directory /imfs/test
-creating directory /imfs/test/old_dir
-changing to /
-attempt to rename imfs/old_dir to imfs/new_dir
-unmounting /imfs
</font> End of _rename_r tests
(10)the first write!!!
stat( /tmp/joel ) returned<span style="background-color: #FF0000"> </span>
<font color='#880000'>-....st_dev (0x0:0x0)
-....st_ino 12 may vary by small amount
</font><font color='#000088'>+....st_dev (0xfffe:0x0)
+....st_ino 13 may vary by small amount
</font> ....mode = 00100700
....nlink = 1
....uid = 0
<font color='#997700'>@@ -119,8 +106,8 @@
</font> Skipping maximum file size test since max_size is 4329344 bytes
That is likely to be bigger than the available RAM on many targets.
stat( /tmp/joel ) returned<span style="background-color: #FF0000"> </span>
<font color='#880000'>-....st_dev (0x0:0x0)
-....st_ino 13 may vary by small amount
</font><font color='#000088'>+....st_dev (0xfffe:0x0)
+....st_ino 14 may vary by small amount
</font> ....mode = 00100700
....nlink = 1
....uid = 0
<font color='#997700'>@@ -132,7 +119,7 @@
</font> ....st_blocks 0
stat of /tmp/j
stat(/tmp/j) returned -1 (errno=2)
<font color='#880000'>-....st_dev (0x0:0x0)
</font><font color='#000088'>+....st_dev (0xfffe:0x0)
</font> ....st_ino 3 may vary by small amount
....mode = 00020755
....nlink = 1
<font color='#997700'>@@ -150,8 +137,8 @@
</font> (3) 26 characters written to the file
(4) 26 characters written to the file
(5) 26 characters written to the file
<font color='#880000'>-....st_dev (0x0:0x0)
-....st_ino 14 may vary by small amount
</font><font color='#000088'>+....st_dev (0xfffe:0x0)
+....st_ino 15 may vary by small amount
</font> ....mode = 00100644
....nlink = 1
....uid = 0
<font color='#997700'>@@ -166,8 +153,8 @@
</font> This is call 3 to fprintf
This is call 4 to fprintf
This is call 5 to fprintf
<font color='#880000'>-....st_dev (0x0:0x0)
-....st_ino 14 may vary by small amount
</font><font color='#000088'>+....st_dev (0xfffe:0x0)
+....st_ino 15 may vary by small amount
</font> ....mode = 00100644
....nlink = 1
....uid = 0
<font color='#997700'>@@ -181,8 +168,9 @@
</font> /
....dev/
........console (device 0, 0)
<font color='#000088'>+........console_b (device 0, 1)
</font> ........tty/
<font color='#880000'>-............S3 (device 128, 255)
</font><font color='#000088'>+............S3 (device 255, 128)
</font> ........test_console (device 0, 0)
....etc/
........passwd (file 0)
<font color='#997700'>@@ -196,8 +184,8 @@
</font> ........hidden_on_mount/
*************** End of Dump ***************
truncate /tmp/j to length of 40
<font color='#880000'>-....st_dev (0x0:0x0)
-....st_ino 14 may vary by small amount
</font><font color='#000088'>+....st_dev (0xfffe:0x0)
+....st_ino 15 may vary by small amount
</font> ....mode = 00100644
....nlink = 1
....uid = 0
<font color='#997700'>@@ -211,8 +199,9 @@
</font> /
....dev/
........console (device 0, 0)
<font color='#000088'>+........console_b (device 0, 1)
</font> ........tty/
<font color='#880000'>-............S3 (device 128, 255)
</font><font color='#000088'>+............S3 (device 255, 128)
</font> ........test_console (device 0, 0)
....etc/
........passwd (file 0)
<font color='#997700'>@@ -232,8 +221,9 @@
</font> /
....dev/
........console (device 0, 0)
<font color='#000088'>+........console_b (device 0, 1)
</font> ........tty/
<font color='#880000'>-............S3 (device 128, 255)
</font><font color='#000088'>+............S3 (device 255, 128)
</font> ........test_console (device 0, 0)
....etc/
........passwd (file 0)
<font color='#006600'>diff -u rtems/testsuites/psxtests/psxfile01/test.c:1.24 rtems/testsuites/psxtests/psxfile01/test.c:1.25
--- rtems/testsuites/psxtests/psxfile01/test.c:1.24 Tue Jun 8 08:12:56 2010
+++ rtems/testsuites/psxtests/psxfile01/test.c Thu Jul 1 16:15:07 2010
</font><font color='#997700'>@@ -118,35 +118,6 @@
</font>
}
<font color='#880000'>-int no_evalformake_IMFS_initialize(
- rtems_filesystem_mount_table_entry_t *mt_entry,
- const void *data
-)
-{
- return IMFS_initialize_support(
- mt_entry,
- &IMFS_ops_no_evalformake,
- &IMFS_memfile_handlers,
- &IMFS_directory_handlers,
- &IMFS_fifo_handlers
- );
-}
-
-int no_rename_IMFS_initialize(
- rtems_filesystem_mount_table_entry_t *mt_entry,
- const void *data
-)
-{
- return IMFS_initialize_support(
- mt_entry,
- &IMFS_ops_no_rename,
- &IMFS_memfile_handlers,
- &IMFS_directory_handlers,
- &IMFS_fifo_handlers
- );
-}
-
-
</font> /*
* Main entry point of the test
*/
<font color='#997700'>@@ -176,23 +147,6 @@
</font> rtems_status_code rtems_status;
rtems_time_of_day time;
<font color='#880000'>- IMFS_ops_no_evalformake = IMFS_ops;
- IMFS_ops_no_rename = IMFS_ops;
-
- IMFS_ops_no_evalformake.fsmount_me_h = no_evalformake_IMFS_initialize;
- IMFS_ops_no_evalformake.evalformake_h = NULL;
-
- IMFS_ops_no_rename.fsmount_me_h = no_rename_IMFS_initialize;
- IMFS_ops_no_rename.rename_h = NULL;
-
- puts( "register no eval-for-make filesystem" );
- status = rtems_filesystem_register( "nefm", no_evalformake_IMFS_initialize );
- rtems_test_assert( status == 0 );
-<span style="background-color: #FF0000"> </span>
- puts( "register no rename filesystem" );
- status = rtems_filesystem_register( "nren", no_rename_IMFS_initialize );
- rtems_test_assert( status == 0 );
-<span style="background-color: #FF0000"> </span>
</font> printf( "\n\n*** FILE TEST 1 ***\n" );
/*
<font color='#997700'>@@ -450,57 +404,6 @@
</font> rtems_test_assert(status == -1);
rtems_test_assert(errno == EXDEV);
<font color='#880000'>- puts("Unmounting /imfs");
- status = unmount("/imfs");
- rtems_test_assert(status == 0);
-
- puts("Mounting filesystem @ /imfs with no support for evalformake");
-<span style="background-color: #FF0000"> </span>
- status = mount("null", "/imfs", "nefm", RTEMS_FILESYSTEM_READ_WRITE, NULL);
- rtems_test_assert(status == 0);
-
- puts("change directory to /imfs");
- status = chdir("/imfs");
- rtems_test_assert(status == 0);
-
- puts("exercise _rename_r, with target on /imfs - expected ENOTSUP");
- puts("attempt to rename /tmp/joel to joel");
- status = _rename_r(NULL, "/tmp/joel", "joel");
- rtems_test_assert(status == -1);
- rtems_test_assert(errno == ENOTSUP);
-
- puts("change directory to /");
- status = chdir("/");
- rtems_test_assert(status == 0);
-<span style="background-color: #FF0000"> </span>
- status = unmount("/imfs");
- rtems_test_assert(status == 0);
-
-
- puts("Mounting filesystem @ /imfs with no support for rename");
- status = mount("null", "/imfs", "nren", RTEMS_FILESYSTEM_READ_WRITE, NULL);
- rtems_test_assert(status == 0);
-
- puts("creating directory /imfs/test");
- status = mkdir("/imfs/test", 0777);
- rtems_test_assert(status == 0);
-
- puts("creating directory /imfs/test/old_dir");
- status = mkdir("/imfs/test/old_dir", 0777);
- rtems_test_assert(status == 0);
-
- puts("changing to /");
- status = chdir("/");
-<span style="background-color: #FF0000"> </span>
- puts("attempt to rename imfs/old_dir to imfs/new_dir");
- status = _rename_r(NULL, "imfs/test/old_dir", "imfs/test/new_dir");
- rtems_test_assert(status == -1);
- rtems_test_assert(errno == ENOTSUP);
-
- puts("unmounting /imfs");
- status = unmount("/imfs");
- rtems_test_assert(status == 0);
-
</font> puts("End of _rename_r tests");
/*
</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>