diff options
author | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-25 16:05:48 +0000 |
---|---|---|
committer | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-25 16:05:48 +0000 |
commit | 94ec4ff51b6101642f88e4cb1f327d3a9d4ea5ea (patch) | |
tree | d73e96c9277364275eea6f9fa370d98dbdd394d7 /libstdc++-v3/testsuite/thread | |
parent | 26edf9fb047aa1f26853cfb5c3d3662849bec691 (diff) | |
download | gcc-94ec4ff51b6101642f88e4cb1f327d3a9d4ea5ea.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49214 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/thread')
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread1.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread2.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread3.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread4.cc | 6 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread5.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread6.cc | 2 |
6 files changed, 10 insertions, 6 deletions
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<string> 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* } } |