From afd61b43808cebe0882cdf13dcdd766cae4ce4e7 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 11 Aug 2020 16:55:01 +0100 Subject: [PATCH] libstdc++: Disable net tests that depend on threads [PR 89760] libstdc++-v3/ChangeLog: PR libstdc++/89760 * testsuite/experimental/net/execution_context/make_service.cc: Add dg-require-gthreads. * testsuite/experimental/net/executor/1.cc: Likewise. * testsuite/experimental/net/headers.cc: Likewise. * testsuite/experimental/net/internet/address/v4/comparisons.cc: Likewise. * testsuite/experimental/net/internet/address/v4/cons.cc: Likewise. * testsuite/experimental/net/internet/address/v4/creation.cc: Likewise. * testsuite/experimental/net/internet/address/v4/members.cc: Likewise. * testsuite/experimental/net/internet/resolver/base.cc: Likewise. * testsuite/experimental/net/internet/resolver/ops/lookup.cc: Likewise. * testsuite/experimental/net/internet/resolver/ops/reverse.cc: Likewise. * testsuite/experimental/net/socket/basic_socket.cc: Likewise. * testsuite/experimental/net/timer/waitable/cons.cc: Likewise. * testsuite/experimental/net/timer/waitable/dest.cc: Likewise. * testsuite/experimental/net/timer/waitable/ops.cc: Likewise. --- .../testsuite/experimental/net/execution_context/make_service.cc | 1 + libstdc++-v3/testsuite/experimental/net/executor/1.cc | 1 + libstdc++-v3/testsuite/experimental/net/headers.cc | 1 + .../experimental/net/internet/address/v4/comparisons.cc | 1 + .../testsuite/experimental/net/internet/address/v4/cons.cc | 1 + .../testsuite/experimental/net/internet/address/v4/creation.cc | 1 + .../testsuite/experimental/net/internet/address/v4/members.cc | 1 + .../testsuite/experimental/net/internet/resolver/base.cc | 1 + .../testsuite/experimental/net/internet/resolver/ops/lookup.cc | 1 + .../testsuite/experimental/net/internet/resolver/ops/reverse.cc | 1 + libstdc++-v3/testsuite/experimental/net/socket/basic_socket.cc | 1 + libstdc++-v3/testsuite/experimental/net/timer/waitable/cons.cc | 1 + libstdc++-v3/testsuite/experimental/net/timer/waitable/dest.cc | 1 + libstdc++-v3/testsuite/experimental/net/timer/waitable/ops.cc | 1 + 14 files changed, 14 insertions(+) diff --git a/libstdc++-v3/testsuite/experimental/net/execution_context/make_service.cc b/libstdc++-v3/testsuite/experimental/net/execution_context/make_service.cc index 0898d12927a2..fe8d385b0f72 100644 --- a/libstdc++-v3/testsuite/experimental/net/execution_context/make_service.cc +++ b/libstdc++-v3/testsuite/experimental/net/execution_context/make_service.cc @@ -16,6 +16,7 @@ // . // { dg-do compile { target c++14 } } +// { dg-require-gthreads "" } #include diff --git a/libstdc++-v3/testsuite/experimental/net/executor/1.cc b/libstdc++-v3/testsuite/experimental/net/executor/1.cc index cd0af4b77373..88e263297ee5 100644 --- a/libstdc++-v3/testsuite/experimental/net/executor/1.cc +++ b/libstdc++-v3/testsuite/experimental/net/executor/1.cc @@ -16,6 +16,7 @@ // . // { dg-do run { target c++14 } } +// { dg-require-gthreads "" } #include #include diff --git a/libstdc++-v3/testsuite/experimental/net/headers.cc b/libstdc++-v3/testsuite/experimental/net/headers.cc index 957135bbf23d..a896f9509ee0 100644 --- a/libstdc++-v3/testsuite/experimental/net/headers.cc +++ b/libstdc++-v3/testsuite/experimental/net/headers.cc @@ -16,6 +16,7 @@ // . // { dg-do compile } +// { dg-require-gthreads "" } #include diff --git a/libstdc++-v3/testsuite/experimental/net/internet/address/v4/comparisons.cc b/libstdc++-v3/testsuite/experimental/net/internet/address/v4/comparisons.cc index 098fc5e18e2f..51fc2917d0a2 100644 --- a/libstdc++-v3/testsuite/experimental/net/internet/address/v4/comparisons.cc +++ b/libstdc++-v3/testsuite/experimental/net/internet/address/v4/comparisons.cc @@ -17,6 +17,7 @@ // { dg-do run { target c++14 } } // { dg-add-options net_ts } +// { dg-require-gthreads "" } #include #include diff --git a/libstdc++-v3/testsuite/experimental/net/internet/address/v4/cons.cc b/libstdc++-v3/testsuite/experimental/net/internet/address/v4/cons.cc index 93c42c59b0f3..0f47d9a863bb 100644 --- a/libstdc++-v3/testsuite/experimental/net/internet/address/v4/cons.cc +++ b/libstdc++-v3/testsuite/experimental/net/internet/address/v4/cons.cc @@ -17,6 +17,7 @@ // { dg-do run { target c++14 } } // { dg-add-options net_ts } +// { dg-require-gthreads "" } #include #include diff --git a/libstdc++-v3/testsuite/experimental/net/internet/address/v4/creation.cc b/libstdc++-v3/testsuite/experimental/net/internet/address/v4/creation.cc index 0c49ae70c357..63deb5497ae3 100644 --- a/libstdc++-v3/testsuite/experimental/net/internet/address/v4/creation.cc +++ b/libstdc++-v3/testsuite/experimental/net/internet/address/v4/creation.cc @@ -17,6 +17,7 @@ // { dg-do run { target c++14 } } // { dg-add-options net_ts } +// { dg-require-gthreads "" } #include #include diff --git a/libstdc++-v3/testsuite/experimental/net/internet/address/v4/members.cc b/libstdc++-v3/testsuite/experimental/net/internet/address/v4/members.cc index 63d70f7f5aa5..14a1e14dd14f 100644 --- a/libstdc++-v3/testsuite/experimental/net/internet/address/v4/members.cc +++ b/libstdc++-v3/testsuite/experimental/net/internet/address/v4/members.cc @@ -17,6 +17,7 @@ // { dg-do run { target c++14 } } // { dg-add-options net_ts } +// { dg-require-gthreads "" } #include #include diff --git a/libstdc++-v3/testsuite/experimental/net/internet/resolver/base.cc b/libstdc++-v3/testsuite/experimental/net/internet/resolver/base.cc index fb6b11b58d7d..3f146f8a988b 100644 --- a/libstdc++-v3/testsuite/experimental/net/internet/resolver/base.cc +++ b/libstdc++-v3/testsuite/experimental/net/internet/resolver/base.cc @@ -17,6 +17,7 @@ // { dg-do run { target c++14 } } // { dg-add-options net_ts } +// { dg-require-gthreads "" } #include #include diff --git a/libstdc++-v3/testsuite/experimental/net/internet/resolver/ops/lookup.cc b/libstdc++-v3/testsuite/experimental/net/internet/resolver/ops/lookup.cc index e4aedd6218e4..b6e1577ec0a6 100644 --- a/libstdc++-v3/testsuite/experimental/net/internet/resolver/ops/lookup.cc +++ b/libstdc++-v3/testsuite/experimental/net/internet/resolver/ops/lookup.cc @@ -17,6 +17,7 @@ // { dg-do run { target c++14 } } // { dg-add-options net_ts } +// { dg-require-gthreads "" } #include #include diff --git a/libstdc++-v3/testsuite/experimental/net/internet/resolver/ops/reverse.cc b/libstdc++-v3/testsuite/experimental/net/internet/resolver/ops/reverse.cc index f7223253fc6c..dae89054722e 100644 --- a/libstdc++-v3/testsuite/experimental/net/internet/resolver/ops/reverse.cc +++ b/libstdc++-v3/testsuite/experimental/net/internet/resolver/ops/reverse.cc @@ -17,6 +17,7 @@ // { dg-do run { target c++14 } } // { dg-add-options net_ts } +// { dg-require-gthreads "" } #include #include diff --git a/libstdc++-v3/testsuite/experimental/net/socket/basic_socket.cc b/libstdc++-v3/testsuite/experimental/net/socket/basic_socket.cc index 14dbff6659dc..134cb7633e3e 100644 --- a/libstdc++-v3/testsuite/experimental/net/socket/basic_socket.cc +++ b/libstdc++-v3/testsuite/experimental/net/socket/basic_socket.cc @@ -16,6 +16,7 @@ // . // { dg-do compile { target c++14 } } +// { dg-require-gthreads "" } #include diff --git a/libstdc++-v3/testsuite/experimental/net/timer/waitable/cons.cc b/libstdc++-v3/testsuite/experimental/net/timer/waitable/cons.cc index fdfdc7181131..1373c402fba1 100644 --- a/libstdc++-v3/testsuite/experimental/net/timer/waitable/cons.cc +++ b/libstdc++-v3/testsuite/experimental/net/timer/waitable/cons.cc @@ -17,6 +17,7 @@ // { dg-do run { target c++14 } } // { dg-add-options libatomic } +// { dg-require-gthreads "" } #include #include diff --git a/libstdc++-v3/testsuite/experimental/net/timer/waitable/dest.cc b/libstdc++-v3/testsuite/experimental/net/timer/waitable/dest.cc index 180ad7c9993f..8a3e0601722c 100644 --- a/libstdc++-v3/testsuite/experimental/net/timer/waitable/dest.cc +++ b/libstdc++-v3/testsuite/experimental/net/timer/waitable/dest.cc @@ -17,6 +17,7 @@ // { dg-do run { target c++14 } } // { dg-add-options libatomic } +// { dg-require-gthreads "" } #include #include diff --git a/libstdc++-v3/testsuite/experimental/net/timer/waitable/ops.cc b/libstdc++-v3/testsuite/experimental/net/timer/waitable/ops.cc index c9c5d21117a3..fd95b9e77f24 100644 --- a/libstdc++-v3/testsuite/experimental/net/timer/waitable/ops.cc +++ b/libstdc++-v3/testsuite/experimental/net/timer/waitable/ops.cc @@ -17,6 +17,7 @@ // { dg-do run { target c++14 } } // { dg-add-options libatomic } +// { dg-require-gthreads "" } #include #include -- 2.43.5