Jonathan Wakely <jwak...@redhat.com> writes:

> On 01/04/20 16:56 +0100, Jonathan Wakely wrote:

> Does that help, or does it still fail for other reasons?

Yes it does thanks!  Updated patch follows.

Okay for trunk?

Thanks

  Andrea

libstdc++-v3/ChangeLog
2020-??-??  Andrea Corallo  <andrea.cora...@arm.com>

        * testsuite/experimental/net/execution_context/use_service.cc:
        Require pthread and gthreads.
>From 5aa45ce35b947b88d18ccb9026d10e2c0e2fc22c Mon Sep 17 00:00:00 2001
From: Andrea Corallo <andrea.cora...@arm.com>
Date: Wed, 1 Apr 2020 10:19:04 +0100
Subject: [PATCH] 89760

---
 .../experimental/net/execution_context/use_service.cc       | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/experimental/net/execution_context/use_service.cc b/libstdc++-v3/testsuite/experimental/net/execution_context/use_service.cc
index 8a2d03fb1bb8..d242d63cb94e 100644
--- a/libstdc++-v3/testsuite/experimental/net/execution_context/use_service.cc
+++ b/libstdc++-v3/testsuite/experimental/net/execution_context/use_service.cc
@@ -15,7 +15,11 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do run { target c++14 } }
+// { dg-do run }
+// { dg-options "-pthread"  }
+// { dg-require-effective-target c++14 }
+// { dg-require-effective-target pthread }
+// { dg-require-gthreads "" }
 
 #include <experimental/executor>
 #include <testsuite_hooks.h>
-- 
2.17.1

Reply via email to