<!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-06-20)</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-06-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* spfifo08/init.c: Catch more cases but discussion on errors and proper
behaviour remain.
</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.376&r2=text&tr2=1.377&diff_format=h">M</a></td><td width='1%'>1.377</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/spfifo08/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/spfifo08/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.376 rtems/testsuites/sptests/ChangeLog:1.377
--- rtems/testsuites/sptests/ChangeLog:1.376 Sun Jun 20 17:02:24 2010
+++ rtems/testsuites/sptests/ChangeLog Sun Jun 20 17:16:25 2010
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2010-06-20 Joel Sherrill <joel.sherrill@oarcorp.com>
<font color='#000088'>+ * spfifo08/init.c: Catch more cases but discussion on errors and proper
+ behaviour remain.
+
+2010-06-20 Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font> * spfifo02/init.c, spfifo03/init.c, spfifo04/init.c: Configure pipes
used.
<font color='#006600'>diff -u rtems/testsuites/sptests/spfifo08/init.c:1.1 rtems/testsuites/sptests/spfifo08/init.c:1.2
--- rtems/testsuites/sptests/spfifo08/init.c:1.1 Sun Jun 20 14:48:03 2010
+++ rtems/testsuites/sptests/spfifo08/init.c Sun Jun 20 17:16:25 2010
</font><font color='#997700'>@@ -15,6 +15,7 @@
</font> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
<font color='#000088'>+#include <unistd.h>
</font> #include <errno.h>
#define MAXIMUM 10
<font color='#997700'>@@ -31,6 +32,7 @@
</font>
BarrierCount = 0;
<font color='#000088'>+ memset( Barriers, 0, sizeof(Barriers) );
</font> for ( i=0 ; i<MAXIMUM ; i++ ) {
status = rtems_barrier_create(
rtems_build_name( 'B', 'A', 'R', 0x30+i ),
<font color='#997700'>@@ -39,7 +41,7 @@
</font> &Barriers[i]
);
if ( status == RTEMS_TOO_MANY ) {
<font color='#880000'>- printf( "%d Barriers created\n", BarrierCount );
</font><font color='#000088'>+ printf( "%d Barriers created\n", BarrierCount+1 );
</font> return;
}<span style="background-color: #FF0000"> </span>
<font color='#997700'>@@ -64,7 +66,7 @@
</font> &Semaphores[i]
);
if ( status == RTEMS_TOO_MANY ) {
<font color='#880000'>- printf( "%d Semaphores created\n", SemaphoreCount );
</font><font color='#000088'>+ printf( "%d Semaphores created\n", SemaphoreCount+1 );
</font> return;
}<span style="background-color: #FF0000"> </span>
<font color='#997700'>@@ -77,7 +79,9 @@
</font> {
rtems_status_code status;
<font color='#880000'>- puts( "Deleting a barrier" );
</font><font color='#000088'>+ BarrierCount--;
+ printf( "Deleting barrier id=0x%08x\n",
+ (unsigned int)Barriers[BarrierCount] );
</font> status = rtems_barrier_delete( Barriers[BarrierCount] );
directive_failed( status, "barrier delete" );
}
<font color='#997700'>@@ -86,7 +90,9 @@
</font> {
rtems_status_code status;
<font color='#880000'>- puts( "Deleting a semaphore" );
</font><font color='#000088'>+ SemaphoreCount--;
+ printf( "Deleting semaphore id=0x%08x\n",
+ (unsigned int) Semaphores[SemaphoreCount] );
</font> status = rtems_semaphore_delete( Semaphores[SemaphoreCount] );
directive_failed( status, "semaphore delete" );
}
<font color='#997700'>@@ -107,7 +113,7 @@
</font> printf( "status=%d errno=%d/(%s)\n", fd, errno, strerror(errno) );
if ( expected ) {
rtems_test_assert(fd == -1);
<font color='#880000'>- rtems_test_assert(errno == expected);
</font><font color='#000088'>+ rtems_test_assert(errno == expected);<span style="background-color: #FF0000"> </span>
</font> } else {
rtems_test_assert(fd != -1);
close( fd );
<font color='#997700'>@@ -129,18 +135,29 @@
</font> puts( "Creating FIFO" );
create_fifo();
<font color='#880000'>- puts( "Opening FIFO.. expect ENOMEM (barrier - case 1)" );
- open_fifo(ENOMEM);
</font><font color='#000088'>+ puts( "Opening FIFO.. expect ENFILE (barrier - case 1)" );
+ open_fifo(ENFILE); /* XXX ENOMEM */
</font>
delete_barrier();
<font color='#880000'>- puts( "Opening FIFO.. expect ENOMEM (barrier - case 2)" );
- open_fifo(ENOMEM);
</font><font color='#000088'>+ puts( "Opening FIFO.. expect ENFILE (barrier - case 2)" );
+ open_fifo(ENFILE); /* XXX ENOMEM */
</font>
delete_barrier();
<font color='#880000'>- puts( "Opening FIFO.. expect ENOMEM (semaphore - case 1)" );
</font><font color='#000088'>+ puts( "Opening FIFO.. expect ENFILE (semaphore - case 1)" );
+ open_fifo(ENFILE); /* XXX ENOMEM */
</font>
<font color='#880000'>- open_fifo(0);
</font><font color='#000088'>+ delete_semaphore();
+ puts( "Opening FIFO.. expect ERROR ???" );
+ open_fifo(EINTR); /* XXX ENOMEM */
+
+ delete_semaphore();
+ puts( "Opening FIFO.. expect ENOSPC???" );
+ open_fifo(ENOMEM);
</font>
<font color='#000088'>+ delete_semaphore();
+ puts( "Opening FIFO.. expect OK???" );
+ open_fifo(0);
+
</font> puts( "*** END OF TEST FIFO 08 ***" );
rtems_test_exit(0);
</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>