3.3 branch testsuite issues

Loren James Rittle rittle@latour.rsch.comm.mot.com
Wed Jul 16 01:21:00 GMT 2003


> 2) pthreads4.cc times out. See here:-

Thanks Greg, moved "as obvious".  (Sorry about that.  Yes, I forgot to
move the final tweak to the test.)

$ ccvs update -j1.6 -j1.7 pthread4.cc

	* testsuite/thread/pthread4.cc: Further tweak to avoid fini race.

Index: testsuite/thread/pthread4.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/thread/pthread4.cc,v
retrieving revision 1.4.4.2
diff -c -r1.4.4.2 pthread4.cc
*** testsuite/thread/pthread4.cc        15 May 2003 16:13:21 -0000      1.4.4.2
--- testsuite/thread/pthread4.cc        16 Jul 2003 01:17:42 -0000
***************
*** 61,66 ****
--- 61,71 ----
        pthread_mutex_unlock (&fooLock);
      }
  
+   // No more data will ever be written, ensure no fini race
+   pthread_mutex_lock (&fooLock);
+   pthread_cond_signal (&fooCondUnderflow);
+   pthread_mutex_unlock (&fooLock);
+ 
    return 0;
  }



More information about the Libstdc++ mailing list