This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: 3.3 branch testsuite issues
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gschafer at zip dot com dot au
- Date: Tue, 15 Jul 2003 20:21:31 -0500 (CDT)
- Subject: Re: 3.3 branch testsuite issues
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
> 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;
}