<!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 (2011-05-06)</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>2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>

        * malloc04/init.c: Fix tests broken in warning pass.
</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.266&r2=text&tr2=1.267&diff_format=h">M</a></td><td width='1%'>1.267</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.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>testsuites/libtests/malloc04/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.266 rtems/testsuites/libtests/ChangeLog:1.267
--- rtems/testsuites/libtests/ChangeLog:1.266   Fri May  6 04:08:07 2011
+++ rtems/testsuites/libtests/ChangeLog Fri May  6 12:29:25 2011
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2011-05-06    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * malloc04/init.c: Fix tests broken in warning pass.
+
</font> 2011-05-06        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * ftp01/.cvsignore, ftp01/Makefile.am, ftp01/ftp01.doc,

<font color='#006600'>diff -u rtems/testsuites/libtests/malloc04/init.c:1.5 rtems/testsuites/libtests/malloc04/init.c:1.6
--- rtems/testsuites/libtests/malloc04/init.c:1.5       Thu May  5 11:45:47 2011
+++ rtems/testsuites/libtests/malloc04/init.c   Fri May  6 12:29:25 2011
</font><font color='#997700'>@@ -111,23 +111,23 @@
</font>   sbrk_count = 0;
   RTEMS_Malloc_Initialize( NULL, 0, 64 );
   p1 = malloc(64);
<font color='#880000'>-  rtems_test_assert( p1 );
</font><font color='#000088'>+  rtems_test_assert( p1 == NULL );
</font> 
   p2 = malloc(64);
<font color='#880000'>-  rtems_test_assert( p2 );
</font><font color='#000088'>+  rtems_test_assert( p2 == NULL );
</font> 
   p3 = malloc(48);
   rtems_test_assert( p3 );
 
   p4 = malloc(48);
<font color='#880000'>-  rtems_test_assert( p4 );
</font><font color='#000088'>+  rtems_test_assert( p4 == NULL );
</font>   
   puts( "Initialize heap with no memory (sbrk aligned)" );
   offset     = 0;
   sbrk_count = 0;
   RTEMS_Malloc_Initialize( NULL, 0, 64 );
   p1 = malloc(64);
<font color='#880000'>-  rtems_test_assert( p1 );
</font><font color='#000088'>+  rtems_test_assert( p1 == NULL );
</font>   
   puts( "Set sbrk amount in heap to 0" );
   offset     = 0;
</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>2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>

        * psxfile01/test.c, psxmsgq01/init.c, psxreaddir/test.c: Fix tests
        broken in warning pass.
</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.338&r2=text&tr2=1.339&diff_format=h">M</a></td><td width='1%'>1.339</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/test.c.diff?r1=text&tr1=1.32&r2=text&tr2=1.33&diff_format=h">M</a></td><td width='1%'>1.33</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/psxmsgq01/init.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/psxmsgq01/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxreaddir/test.c.diff?r1=text&tr1=1.21&r2=text&tr2=1.22&diff_format=h">M</a></td><td width='1%'>1.22</td><td width='100%'>testsuites/psxtests/psxreaddir/test.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.338 rtems/testsuites/psxtests/ChangeLog:1.339
--- rtems/testsuites/psxtests/ChangeLog:1.338   Thu May  5 11:45:51 2011
+++ rtems/testsuites/psxtests/ChangeLog Fri May  6 12:29:28 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-05-06    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * psxfile01/test.c, psxmsgq01/init.c, psxreaddir/test.c: Fix tests
+       broken in warning pass.
+
</font> 2011-05-05        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * psx04/task3.c, psxfile01/test.c, psxhdrs/Makefile.am,

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxfile01/test.c:1.32 rtems/testsuites/psxtests/psxfile01/test.c:1.33
--- rtems/testsuites/psxtests/psxfile01/test.c:1.32     Thu May  5 11:45:52 2011
+++ rtems/testsuites/psxtests/psxfile01/test.c  Fri May  6 12:29:29 2011
</font><font color='#997700'>@@ -656,7 +656,7 @@
</font>   status = truncate( "/tmp/fred", 10 );
   rtems_test_assert( status == -1);
 
<font color='#880000'>-  rtems_status = rtems_io_register_name( "/dev/console", 0, 0 );
</font><font color='#000088'>+  rtems_status = rtems_io_register_name( "/dev/not_console", 0, 0 );
</font>   directive_failed( rtems_status, "io register" );
 
   test_case_reopen_append();

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxmsgq01/init.c:1.26 rtems/testsuites/psxtests/psxmsgq01/init.c:1.27
--- rtems/testsuites/psxtests/psxmsgq01/init.c:1.26     Thu May  5 11:45:52 2011
+++ rtems/testsuites/psxtests/psxmsgq01/init.c  Fri May  6 12:29:29 2011
</font><font color='#997700'>@@ -1193,7 +1193,6 @@
</font>   struct timeval  tv1, tv2, tv3;
   struct timezone tz1, tz2;
   int              len;
<font color='#880000'>-  int              status;
</font>   char            *msg;
 
   printf( "Init: verify_timedout_mq_timedsend - on queue %s ", Test_q[que].name);
<font color='#997700'>@@ -1204,8 +1203,7 @@
</font>   timeout.tv_sec  = tv1.tv_sec - 1;
   timeout.tv_nsec = tv1.tv_usec * 1000;
 
<font color='#880000'>-  status = mq_timedsend( Test_q[que].mq, msg, len , 0, &timeout );
-  rtems_test_assert( status == 0 );
</font><font color='#000088'>+  (void) mq_timedsend( Test_q[que].mq, msg, len , 0, &timeout );
</font> 
   gettimeofday( &tv2, &tz2 );
   tv3.tv_sec  = tv2.tv_sec - tv1.tv_sec;

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxreaddir/test.c:1.21 rtems/testsuites/psxtests/psxreaddir/test.c:1.22
--- rtems/testsuites/psxtests/psxreaddir/test.c:1.21    Thu May  5 11:45:52 2011
+++ rtems/testsuites/psxtests/psxreaddir/test.c Fri May  6 12:29:29 2011
</font><font color='#997700'>@@ -82,7 +82,7 @@
</font> 
   printdir( the_dir );
   status = closedir( the_dir );
<font color='#880000'>-  rtems_test_assert( status );
</font><font color='#000088'>+  rtems_test_assert( !status );
</font> }
 
 char *many_files[] = {
</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>2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>

        * sp39/init.c: Fix tests broken in warning pass.
</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.449&r2=text&tr2=1.450&diff_format=h">M</a></td><td width='1%'>1.450</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/sp39/init.c.diff?r1=text&tr1=1.12&r2=text&tr2=1.13&diff_format=h">M</a></td><td width='1%'>1.13</td><td width='100%'>testsuites/sptests/sp39/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.449 rtems/testsuites/sptests/ChangeLog:1.450
--- rtems/testsuites/sptests/ChangeLog:1.449    Fri May  6 02:08:03 2011
+++ rtems/testsuites/sptests/ChangeLog  Fri May  6 12:29:35 2011
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2011-05-06    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * sp39/init.c: Fix tests broken in warning pass.
+
</font> 2011-05-06        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * spnsext01/.cvsignore, spnsext01/Makefile.am, spnsext01/init.c,

<font color='#006600'>diff -u rtems/testsuites/sptests/sp39/init.c:1.12 rtems/testsuites/sptests/sp39/init.c:1.13
--- rtems/testsuites/sptests/sp39/init.c:1.12   Thu May  5 11:45:57 2011
+++ rtems/testsuites/sptests/sp39/init.c        Fri May  6 12:29:35 2011
</font><font color='#997700'>@@ -18,6 +18,14 @@
</font> #define CONFIGURE_INIT
 #include "system.h"
 
<font color='#000088'>+/*
+ *  ERROR CHECKING NOTE:
+ *
+ *  We are either at dispatch disable level 1 or 2.  Either way, it is
+ *  safer not to check the dispatch level explicitly so we are using
+ *  fatal_directive_check_status_only() not directive_failed().
+ */
+
</font> rtems_timer_service_routine test_event_from_isr(
   rtems_id  timer,
   void     *arg
<font color='#997700'>@@ -45,19 +53,19 @@
</font>      *  another task so doesn't impact this critical section.
      */
     status = rtems_event_send( other_task, 0x02 );
<font color='#880000'>-    directive_failed( status, "event send" );
</font><font color='#000088'>+    fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" );
</font> 
     /*
      *  This event send hits the main task but doesn't satisfy
      *  it's blocking condition so it will still block
      */
     status = rtems_event_send( main_task, 0x02 );
<font color='#880000'>-    directive_failed( status, "event send" );
</font><font color='#000088'>+    fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" );
</font> 
     case_hit = TRUE;
   }
   status = rtems_event_send( main_task, 0x01 );
<font color='#880000'>-  directive_failed( status, "event send" );
</font><font color='#000088'>+  fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" );
</font> }
 
 rtems_timer_service_routine test_event_with_timeout_from_isr(
<font color='#997700'>@@ -75,7 +83,7 @@
</font>     case_hit = TRUE;
   }
   status = rtems_event_send( main_task, 0x01 );
<font color='#880000'>-  directive_failed( status, "event send" );
</font><font color='#000088'>+  fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" );
</font> }
 
 rtems_task Init(
</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>