This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
PATCH: Avoid thread/pthread4.cc timeout on common platform
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: schmid at snake dot iap dot physik dot tu-darmstadt dot de, gcc-patches at gcc dot gnu dot org
- Date: Tue, 12 Mar 2002 21:02:37 -0600 (CST)
- Subject: PATCH: Avoid thread/pthread4.cc timeout on common platform
- Reply-to: rittle at labs dot mot dot com
Applied as obvious to both mainline and 3.1 branch. I think I saw
this on old sparc-sun-solaris2.X hardware as well.
reported by Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* testsuite/thread/pthread4.cc: Lower nominal iteration counter.
Index: testsuite/thread/pthread4.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/thread/pthread4.cc,v
retrieving revision 1.2
diff -c -r1.2 pthread4.cc
*** pthread4.cc 2002/01/25 16:05:48 1.2
--- pthread4.cc 2002/03/13 02:49:43
***************
*** 39,45 ****
#if defined(__CYGWIN__)
static int iters = 10000;
#else
! static int iters = 1000000;
#endif
void*
--- 39,45 ----
#if defined(__CYGWIN__)
static int iters = 10000;
#else
! static int iters = 300000;
#endif
void*