change log for rtems (2011-05-06)

rtems-vc at rtems.org rtems-vc at rtems.org
Fri May 6 18:11:17 UTC 2011


 *joel*:
2011-05-06	Joel Sherrill <joel.sherrill at oarcorp.com>

	* malloc04/init.c: Fix tests broken in warning pass.

M  1.267  testsuites/libtests/ChangeLog
M    1.6  testsuites/libtests/malloc04/init.c

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
@@ -1,3 +1,7 @@
+2011-05-06	Joel Sherrill <joel.sherrill at oarcorp.com>
+
+	* malloc04/init.c: Fix tests broken in warning pass.
+
 2011-05-06	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	* ftp01/.cvsignore, ftp01/Makefile.am, ftp01/ftp01.doc,

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
@@ -111,23 +111,23 @@
   sbrk_count = 0;
   RTEMS_Malloc_Initialize( NULL, 0, 64 );
   p1 = malloc(64);
-  rtems_test_assert( p1 );
+  rtems_test_assert( p1 == NULL );
 
   p2 = malloc(64);
-  rtems_test_assert( p2 );
+  rtems_test_assert( p2 == NULL );
 
   p3 = malloc(48);
   rtems_test_assert( p3 );
 
   p4 = malloc(48);
-  rtems_test_assert( p4 );
+  rtems_test_assert( p4 == NULL );
   
   puts( "Initialize heap with no memory (sbrk aligned)" );
   offset     = 0;
   sbrk_count = 0;
   RTEMS_Malloc_Initialize( NULL, 0, 64 );
   p1 = malloc(64);
-  rtems_test_assert( p1 );
+  rtems_test_assert( p1 == NULL );
   
   puts( "Set sbrk amount in heap to 0" );
   offset     = 0;


 *joel*:
2011-05-06	Joel Sherrill <joel.sherrill at oarcorp.com>

	* psxfile01/test.c, psxmsgq01/init.c, psxreaddir/test.c: Fix tests
	broken in warning pass.

M  1.339  testsuites/psxtests/ChangeLog
M   1.33  testsuites/psxtests/psxfile01/test.c
M   1.27  testsuites/psxtests/psxmsgq01/init.c
M   1.22  testsuites/psxtests/psxreaddir/test.c

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
@@ -1,3 +1,8 @@
+2011-05-06	Joel Sherrill <joel.sherrill at oarcorp.com>
+
+	* psxfile01/test.c, psxmsgq01/init.c, psxreaddir/test.c: Fix tests
+	broken in warning pass.
+
 2011-05-05	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	* psx04/task3.c, psxfile01/test.c, psxhdrs/Makefile.am,

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
@@ -656,7 +656,7 @@
   status = truncate( "/tmp/fred", 10 );
   rtems_test_assert( status == -1);
 
-  rtems_status = rtems_io_register_name( "/dev/console", 0, 0 );
+  rtems_status = rtems_io_register_name( "/dev/not_console", 0, 0 );
   directive_failed( rtems_status, "io register" );
 
   test_case_reopen_append();

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
@@ -1193,7 +1193,6 @@
   struct timeval  tv1, tv2, tv3;
   struct timezone tz1, tz2;
   int              len;
-  int              status;
   char            *msg;
 
   printf( "Init: verify_timedout_mq_timedsend - on queue %s ", Test_q[que].name);
@@ -1204,8 +1203,7 @@
   timeout.tv_sec  = tv1.tv_sec - 1;
   timeout.tv_nsec = tv1.tv_usec * 1000;
 
-  status = mq_timedsend( Test_q[que].mq, msg, len , 0, &timeout );
-  rtems_test_assert( status == 0 );
+  (void) mq_timedsend( Test_q[que].mq, msg, len , 0, &timeout );
 
   gettimeofday( &tv2, &tz2 );
   tv3.tv_sec  = tv2.tv_sec - tv1.tv_sec;

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
@@ -82,7 +82,7 @@
 
   printdir( the_dir );
   status = closedir( the_dir );
-  rtems_test_assert( status );
+  rtems_test_assert( !status );
 }
 
 char *many_files[] = {


 *joel*:
2011-05-06	Joel Sherrill <joel.sherrill at oarcorp.com>

	* sp39/init.c: Fix tests broken in warning pass.

M  1.450  testsuites/sptests/ChangeLog
M   1.13  testsuites/sptests/sp39/init.c

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
@@ -1,3 +1,7 @@
+2011-05-06	Joel Sherrill <joel.sherrill at oarcorp.com>
+
+	* sp39/init.c: Fix tests broken in warning pass.
+
 2011-05-06	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
 	* spnsext01/.cvsignore, spnsext01/Makefile.am, spnsext01/init.c,

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
@@ -18,6 +18,14 @@
 #define CONFIGURE_INIT
 #include "system.h"
 
+/*
+ *  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().
+ */
+
 rtems_timer_service_routine test_event_from_isr(
   rtems_id  timer,
   void     *arg
@@ -45,19 +53,19 @@
      *  another task so doesn't impact this critical section.
      */
     status = rtems_event_send( other_task, 0x02 );
-    directive_failed( status, "event send" );
+    fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" );
 
     /*
      *  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 );
-    directive_failed( status, "event send" );
+    fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" );
 
     case_hit = TRUE;
   }
   status = rtems_event_send( main_task, 0x01 );
-  directive_failed( status, "event send" );
+  fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" );
 }
 
 rtems_timer_service_routine test_event_with_timeout_from_isr(
@@ -75,7 +83,7 @@
     case_hit = TRUE;
   }
   status = rtems_event_send( main_task, 0x01 );
-  directive_failed( status, "event send" );
+  fatal_directive_check_status_only( status, RTEMS_SUCCESSFUL, "event send" );
 }
 
 rtems_task Init(



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110506/844d1545/attachment-0001.html>


More information about the vc mailing list