change log for rtems (2011-10-25)

rtems-vc at rtems.org rtems-vc at rtems.org
Tue Oct 25 17:11:59 UTC 2011


 *ralf*:
2011-10-25	Ralf Corsépius <ralf.corsepius at rtems.org>

	* psxmsgq01/init.c: Introduce fatal_posix_mqd.
	Replace fatal_posix_service_pointer_minus_one with fatal_posix_mqd.
	* psxsem01/init.c: Introduce fatal_posix_sem.
	Replace fatal_posix_service_pointer_minus_one with fatal_posix_sem.

M  1.374  testsuites/psxtests/ChangeLog
M   1.29  testsuites/psxtests/psxmsgq01/init.c
M   1.21  testsuites/psxtests/psxsem01/init.c

diff -u rtems/testsuites/psxtests/ChangeLog:1.373 rtems/testsuites/psxtests/ChangeLog:1.374
--- rtems/testsuites/psxtests/ChangeLog:1.373	Tue Oct 25 10:12:08 2011
+++ rtems/testsuites/psxtests/ChangeLog	Tue Oct 25 11:29:14 2011
@@ -1,5 +1,12 @@
 2011-10-25	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* psxmsgq01/init.c: Introduce fatal_posix_mqd.
+	Replace fatal_posix_service_pointer_minus_one with fatal_posix_mqd.
+	* psxsem01/init.c: Introduce fatal_posix_sem.
+	Replace fatal_posix_service_pointer_minus_one with fatal_posix_sem.
+
+2011-10-25	Ralf Corsépius <ralf.corsepius at rtems.org>
+
 	* psxreaddir/test.c: Remove bogus casts.
 	Fix fprintf format strings.
 

diff -u rtems/testsuites/psxtests/psxmsgq01/init.c:1.28 rtems/testsuites/psxtests/psxmsgq01/init.c:1.29
--- rtems/testsuites/psxtests/psxmsgq01/init.c:1.28	Sun Aug 21 14:59:51 2011
+++ rtems/testsuites/psxtests/psxmsgq01/init.c	Tue Oct 25 11:29:14 2011
@@ -22,6 +22,16 @@
 #include <signal.h>   /* signal facilities */
 #include "test_support.h"
 
+#define fatal_posix_mqd( _ptr, _msg ) \
+  if ( (_ptr != (mqd_t) -1) ) { \
+    check_dispatch_disable_level( 0 ); \
+    printf( "\n%s FAILED -- expected (-1) got (%" PRId32 " - %d/%s)\n", \
+	    (_msg), _ptr, errno, strerror(errno) ); \
+    FLUSH_OUTPUT(); \
+    rtems_test_exit( -1 ); \
+  }
+
+
 typedef struct {
   char         msg[ 50 ];
   int          size;
@@ -174,8 +184,7 @@
   attr.mq_maxmsg = -1;
   puts( "Init: mq_open - Create with maxmsg (-1) (EINVAL)" );
   n_mq2 = mq_open( "mq2", O_CREAT | O_RDONLY, 0x777, &attr);
-  fatal_posix_service_pointer_minus_one(
-    (void *)n_mq2, "mq_open error return status" );
+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
   fatal_posix_service_status( errno, EINVAL,  "mq_open errno EINVAL");
   attr.mq_maxmsg  = MAXMSG;
 
@@ -186,8 +195,7 @@
   attr.mq_msgsize = -1;
   puts( "Init: mq_open - Create with msgsize (-1) (EINVAL)" );
   n_mq2 = mq_open( "mq2", O_CREAT | O_RDONLY, 0x777, &attr);
-  fatal_posix_service_pointer_minus_one(
-    (void *) n_mq2, "mq_open error return status" );
+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
   fatal_posix_service_status( errno, EINVAL,  "mq_open errno EINVAL");
   attr.mq_msgsize = MSGSIZE;
 
@@ -197,8 +205,7 @@
 
   puts( "Init: mq_open - Open new mq without create flag (ENOENT)" );
   n_mq2 = mq_open( "mq3", O_EXCL | O_RDONLY, 0x777, NULL);
-  fatal_posix_service_pointer_minus_one(
-    (void *) n_mq2, "mq_open error return status" );
+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
   fatal_posix_service_status( errno, ENOENT,  "mq_open errno ENOENT");
 
   /*
@@ -211,8 +218,7 @@
 
   puts( "Init: mq_open - Open with too long of a name (ENAMETOOLONG)" );
   n_mq2 = mq_open( Get_Too_Long_Name(), O_CREAT | O_RDONLY, 0x777, NULL );
-  fatal_posix_service_pointer_minus_one(
-    (void *) n_mq2, "mq_open error return status" );
+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
   fatal_posix_service_status( errno, ENAMETOOLONG, "mq_open errno ENAMETOOLONG");
 
   /*
@@ -231,8 +237,7 @@
 
   n_mq2 = mq_open(
     Build_Queue_Name(0), O_CREAT | O_EXCL | O_RDONLY, 0x777, NULL);
-  fatal_posix_service_pointer_minus_one(
-    (void *) n_mq2, "mq_open error return status" );
+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
   fatal_posix_service_status( errno, EEXIST,  "mq_open errno EEXIST");
 
   status = mq_unlink( Build_Queue_Name(0) );
@@ -273,8 +278,7 @@
 
   puts( "Init: mq_open - system is out of resources (ENFILE)" );
   n_mq2 = mq_open( Build_Queue_Name(i), O_CREAT | O_RDONLY, 0x777, NULL );
-  fatal_posix_service_pointer_minus_one(
-    (void *) n_mq2, "mq_open error return status" );
+  fatal_posix_mqd( n_mq2, "mq_open error return status" );
   fatal_posix_service_status( errno, ENFILE,  "mq_open errno ENFILE");
 
   /*

diff -u rtems/testsuites/psxtests/psxsem01/init.c:1.20 rtems/testsuites/psxtests/psxsem01/init.c:1.21
--- rtems/testsuites/psxtests/psxsem01/init.c:1.20	Tue Feb 22 03:47:35 2011
+++ rtems/testsuites/psxtests/psxsem01/init.c	Tue Oct 25 11:29:14 2011
@@ -22,6 +22,16 @@
 #include <pmacros.h>
 #include "test_support.h"
 
+#define fatal_posix_sem( _ptr, _msg ) \
+  if ( (_ptr != SEM_FAILED) ) { \
+    check_dispatch_disable_level( 0 ); \
+    printf( "\n%s FAILED -- expected (-1) got (%p - %d/%s)\n", \
+	    (_msg), _ptr, errno, strerror(errno) ); \
+    FLUSH_OUTPUT(); \
+    rtems_test_exit( -1 ); \
+  }
+
+
 #define MAX_SEMS  10
 
 void *POSIX_Init(
@@ -175,8 +185,7 @@
 
   puts( "Init: sem_open - UNSUCCESSFUL (ENAMETOOLONG)" );
   n_sem1 = sem_open(Get_Too_Long_Name(), O_CREAT, 0777, 1 );
-  fatal_posix_service_pointer_minus_one(
-    n_sem1, "sem_open error return status");
+  fatal_posix_sem( n_sem1, "sem_open error return status" );
   fatal_posix_service_status(
     errno, ENAMETOOLONG, "sem_open errorno ENAMETOOLONG" );
 
@@ -191,14 +200,12 @@
 
   puts( "Init: sem_open - Create an Existing sem (EEXIST)" );
   n_sem2 = sem_open("sem1", O_CREAT | O_EXCL, 0777, 1);
-  fatal_posix_service_pointer_minus_one(
-    n_sem2, "sem_open error return status" );
+  fatal_posix_sem( n_sem2, "sem_open error return status" );
   fatal_posix_service_status( errno, EEXIST,  "sem_open errno EEXIST");
 
   puts( "Init: sem_open - Open new sem without create flag (ENOENT)" );
   n_sem2 = sem_open("sem3", O_EXCL, 0777, 1);
-  fatal_posix_service_pointer_minus_one(
-    n_sem2, "sem_open error return status" );
+  fatal_posix_sem( n_sem2, "sem_open error return status" );
   fatal_posix_service_status( errno, ENOENT,  "sem_open errno EEXIST");
 
   /*


 *ralf*:
2011-10-25	Ralf Corsépius <ralf.corsepius at rtems.org>

	* support/include/tmacros.h:
	Remove fatal_posix_service_pointer_minus_one (unused).

M  1.192  testsuites/ChangeLog
M   1.59  testsuites/support/include/tmacros.h

diff -u rtems/testsuites/ChangeLog:1.191 rtems/testsuites/ChangeLog:1.192
--- rtems/testsuites/ChangeLog:1.191	Thu Oct 13 08:08:12 2011
+++ rtems/testsuites/ChangeLog	Tue Oct 25 11:30:35 2011
@@ -1,3 +1,8 @@
+2011-10-25	Ralf Corsépius <ralf.corsepius at rtems.org>
+
+	* support/include/tmacros.h: 
+	Remove fatal_posix_service_pointer_minus_one (unused).
+
 2011-10-13	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* support/include/primode.h: New.

diff -u rtems/testsuites/support/include/tmacros.h:1.58 rtems/testsuites/support/include/tmacros.h:1.59
--- rtems/testsuites/support/include/tmacros.h:1.58	Thu Sep 29 21:58:15 2011
+++ rtems/testsuites/support/include/tmacros.h	Tue Oct 25 11:30:35 2011
@@ -122,15 +122,6 @@
 #define fatal_posix_service_status( _stat, _desired, _msg ) \
   fatal_posix_service_status_with_level( _stat, _desired, _msg, 0 )
 
-#define fatal_posix_service_pointer_minus_one( _ptr, _msg ) \
-  if ( (_ptr != (void *)-1) ) { \
-    check_dispatch_disable_level( 0 ); \
-    printf( "\n%s FAILED -- expected (-1) got (%p - %d/%s)\n", \
-	    (_msg), _ptr, errno, strerror(errno) ); \
-    FLUSH_OUTPUT(); \
-    rtems_test_exit( -1 ); \
-  }
-
 #define fatal_posix_service_status_with_level( _stat, _desired, _msg, _level ) \
   do { \
     check_dispatch_disable_level( _level ); \



--

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/20111025/eda138ec/attachment-0001.html>


More information about the vc mailing list