From a68d024dfcfb284d0ab6ce809f1ff691049a893b Mon Sep 17 00:00:00 2001 From: David Billinghurst Date: Fri, 25 Jan 2002 16:05:48 +0000 Subject: [PATCH] pthread1.cc: Enable on cygwin. * testsuite/thread/pthread1.cc: Enable on cygwin. * testsuite/thread/pthread2.cc: Likewise. * testsuite/thread/pthread3.cc: Likewise. * testsuite/thread/pthread4.cc: Likewise. * testsuite/thread/pthread5.cc: Likewise. * testsuite/thread/pthread6.cc: Likewise. From-SVN: r49214 --- libstdc++-v3/ChangeLog | 9 +++++++++ libstdc++-v3/testsuite/thread/pthread1.cc | 2 +- libstdc++-v3/testsuite/thread/pthread2.cc | 2 +- libstdc++-v3/testsuite/thread/pthread3.cc | 2 +- libstdc++-v3/testsuite/thread/pthread4.cc | 6 +++++- libstdc++-v3/testsuite/thread/pthread5.cc | 2 +- libstdc++-v3/testsuite/thread/pthread6.cc | 2 +- 7 files changed, 19 insertions(+), 6 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2bc1a95fa1e..b300a62845b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,12 @@ +2002-01-25 David Billinghurst + + * testsuite/thread/pthread1.cc: Enable on cygwin. + * testsuite/thread/pthread2.cc: Likewise. + * testsuite/thread/pthread3.cc: Likewise. + * testsuite/thread/pthread4.cc: Likewise. + * testsuite/thread/pthread5.cc: Likewise. + * testsuite/thread/pthread6.cc: Likewise. + 2002-01-24 Benjamin Kosnik * testsuite/27_io/ostream_inserter_char.cc (test07): New. diff --git a/libstdc++-v3/testsuite/thread/pthread1.cc b/libstdc++-v3/testsuite/thread/pthread1.cc index f51881a9036..b8f522655cc 100644 --- a/libstdc++-v3/testsuite/thread/pthread1.cc +++ b/libstdc++-v3/testsuite/thread/pthread1.cc @@ -18,7 +18,7 @@ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. -// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* } } +// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* *-*-cygwin } } // { dg-options "-pthread" { target *-*-freebsd* *-*-linux* } } // { dg-options "-pthreads" { target *-*-solaris* } } diff --git a/libstdc++-v3/testsuite/thread/pthread2.cc b/libstdc++-v3/testsuite/thread/pthread2.cc index 3ffba23f21d..315393cf7ae 100644 --- a/libstdc++-v3/testsuite/thread/pthread2.cc +++ b/libstdc++-v3/testsuite/thread/pthread2.cc @@ -19,7 +19,7 @@ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. -// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* } } +// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* *-*-cygwin } } // { dg-options "-pthread" { target *-*-freebsd* *-*-linux* } } // { dg-options "-pthreads" { target *-*-solaris* } } diff --git a/libstdc++-v3/testsuite/thread/pthread3.cc b/libstdc++-v3/testsuite/thread/pthread3.cc index d029f3b5c97..4edb107b231 100644 --- a/libstdc++-v3/testsuite/thread/pthread3.cc +++ b/libstdc++-v3/testsuite/thread/pthread3.cc @@ -19,7 +19,7 @@ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. -// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* } } +// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* *-*-cygwin } } // { dg-options "-pthread" { target *-*-freebsd* *-*-linux* } } // { dg-options "-pthreads" { target *-*-solaris* } } diff --git a/libstdc++-v3/testsuite/thread/pthread4.cc b/libstdc++-v3/testsuite/thread/pthread4.cc index b6d70c9d775..f8cd29d3f0b 100644 --- a/libstdc++-v3/testsuite/thread/pthread4.cc +++ b/libstdc++-v3/testsuite/thread/pthread4.cc @@ -20,7 +20,7 @@ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. -// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* } } +// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* *-*-cygwin } } // { dg-options "-pthread" { target *-*-freebsd* *-*-linux* } } // { dg-options "-pthreads" { target *-*-solaris* } } @@ -36,7 +36,11 @@ using namespace std; static list foo; static pthread_mutex_t fooLock = PTHREAD_MUTEX_INITIALIZER; static unsigned max_size = 10; +#if defined(__CYGWIN__) +static int iters = 10000; +#else static int iters = 1000000; +#endif void* produce (void*) diff --git a/libstdc++-v3/testsuite/thread/pthread5.cc b/libstdc++-v3/testsuite/thread/pthread5.cc index fcd491d967c..6de9f41a533 100644 --- a/libstdc++-v3/testsuite/thread/pthread5.cc +++ b/libstdc++-v3/testsuite/thread/pthread5.cc @@ -20,7 +20,7 @@ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. -// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* } } +// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* *-*-cygwin } } // { dg-options "-pthread" { target *-*-freebsd* *-*-linux* } } // { dg-options "-pthreads" { target *-*-solaris* } } diff --git a/libstdc++-v3/testsuite/thread/pthread6.cc b/libstdc++-v3/testsuite/thread/pthread6.cc index d0bd82f1b39..9f5a76216b1 100644 --- a/libstdc++-v3/testsuite/thread/pthread6.cc +++ b/libstdc++-v3/testsuite/thread/pthread6.cc @@ -19,7 +19,7 @@ // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // USA. -// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* } } +// { dg-do run { target *-*-freebsd* *-*-linux* *-*-solaris* *-*-cygwin } } // { dg-options "-pthread" { target *-*-freebsd* *-*-linux* } } // { dg-options "-pthreads" { target *-*-solaris* } }