svn commit: branches/uClibc-nptl/test/nptl

carmelo at uclibc.org carmelo at uclibc.org
Wed Jan 28 14:16:11 UTC 2009


Author: carmelo
Date: 2009-01-28 14:16:11 +0000 (Wed, 28 Jan 2009)
New Revision: 25095

Log:
Fixed NPTL tests build and cleanup:
- tst-mqueue6.c: remove cast to undefined type
- tst-timer4.c: remove cast to undefined type
- tst-mqueue1.c: avoid compiler warning due to different signedness
- tst-cancel7.c: comment out unsed code to silent compiler warning

Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>



Modified:
   branches/uClibc-nptl/test/nptl/tst-cancel7.c
   branches/uClibc-nptl/test/nptl/tst-mqueue1.c
   branches/uClibc-nptl/test/nptl/tst-mqueue6.c
   branches/uClibc-nptl/test/nptl/tst-timer4.c
   branches/uClibc-nptl/test/nptl/tst-tls5.c


Changeset:
Modified: branches/uClibc-nptl/test/nptl/tst-cancel7.c
===================================================================
--- branches/uClibc-nptl/test/nptl/tst-cancel7.c	2009-01-28 13:37:10 UTC (rev 25094)
+++ branches/uClibc-nptl/test/nptl/tst-cancel7.c	2009-01-28 14:16:11 UTC (rev 25095)
@@ -167,6 +167,7 @@
   return r != PTHREAD_CANCELED;
 }
 
+#if 0 /* unused */
 static void
 do_cleanup (void)
 {
@@ -191,6 +192,7 @@
 
   unlink (pidfilename);
 }
+#endif
 
 #define OPT_COMMAND	10000
 #define OPT_PIDFILE	10001

Modified: branches/uClibc-nptl/test/nptl/tst-mqueue1.c
===================================================================
--- branches/uClibc-nptl/test/nptl/tst-mqueue1.c	2009-01-28 13:37:10 UTC (rev 25094)
+++ branches/uClibc-nptl/test/nptl/tst-mqueue1.c	2009-01-28 14:16:11 UTC (rev 25095)
@@ -72,7 +72,7 @@
 {
   int result = 0;
 
-  unsigned char v []
+  char v []
     = { 0x32, 0x62, 0x22, 0x31, 0x11, 0x73, 0x61, 0x21, 0x72, 0x71, 0x81 };
 
   struct mq_attr attr;
@@ -190,7 +190,7 @@
       else
 	result |= check_attrs (&attr, nonblock, 10);
 
-      unsigned char vr[11] = { };
+      char vr[11] = { };
       unsigned int prio;
       ssize_t rets;
 
@@ -414,4 +414,4 @@
   return result;
 }
 
-#include "../test-skeleton.c"
\ No newline at end of file
+#include "../test-skeleton.c"

Modified: branches/uClibc-nptl/test/nptl/tst-mqueue6.c
===================================================================
--- branches/uClibc-nptl/test/nptl/tst-mqueue6.c	2009-01-28 13:37:10 UTC (rev 25094)
+++ branches/uClibc-nptl/test/nptl/tst-mqueue6.c	2009-01-28 14:16:11 UTC (rev 25095)
@@ -138,7 +138,7 @@
   memset (&ev, 0xaa, sizeof (ev));
   ev.sigev_notify = SIGEV_THREAD;
   ev.sigev_notify_function = fct;
-  ev.sigev_notify_attributes = (struct __pthread_attr_s *) &nattr;
+  ev.sigev_notify_attributes = &nattr;
   ev.sigev_value.sival_ptr = &q;
   if (mq_notify (q, &ev) != 0)
     {

Modified: branches/uClibc-nptl/test/nptl/tst-timer4.c
===================================================================
--- branches/uClibc-nptl/test/nptl/tst-timer4.c	2009-01-28 13:37:10 UTC (rev 25094)
+++ branches/uClibc-nptl/test/nptl/tst-timer4.c	2009-01-28 14:16:11 UTC (rev 25095)
@@ -271,7 +271,7 @@
   memset (&ev, 0x55, sizeof (ev));
   ev.sigev_notify = SIGEV_THREAD;
   ev.sigev_notify_function = thr2;
-  ev.sigev_notify_attributes = (struct __pthread_attr_s *) &nattr;
+  ev.sigev_notify_attributes = &nattr;
   ev.sigev_value.sival_int = 111;
   if (timer_create (TEST_CLOCK, &ev, &timer_thr2) != 0)
     {

Modified: branches/uClibc-nptl/test/nptl/tst-tls5.c
===================================================================
--- branches/uClibc-nptl/test/nptl/tst-tls5.c	2009-01-28 13:37:10 UTC (rev 25094)
+++ branches/uClibc-nptl/test/nptl/tst-tls5.c	2009-01-28 14:16:11 UTC (rev 25095)
@@ -22,7 +22,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <pthread.h>
-#include <pthreadP.h>
 #include <sys/param.h>
 
 #include "tst-tls5.h"



More information about the uClibc-cvs mailing list