From a7fff29edd82cffbf65ff5cf2b4c5dcda326e1d0 Mon Sep 17 00:00:00 2001 From: redi Date: Tue, 1 Oct 2019 21:02:17 +0000 Subject: [PATCH] Disable tests that aren't valid in parallel mode Tests that depend on debug mode can't be tested in parallel mode. * testsuite/17_intro/using_namespace_std_tr1_neg.cc: Skip test for parallel mode. * testsuite/20_util/hash/84998.cc: Likewise. * testsuite/23_containers/deque/types/pmr_typedefs_debug.cc: Likewise. * testsuite/23_containers/forward_list/pmr_typedefs_debug.cc: Likewise. * testsuite/23_containers/list/pmr_typedefs_debug.cc: Likewise. * testsuite/23_containers/map/pmr_typedefs_debug.cc: Likewise. * testsuite/23_containers/multimap/pmr_typedefs_debug.cc: Likewise. * testsuite/23_containers/multiset/pmr_typedefs_debug.cc: Likewise. * testsuite/23_containers/set/pmr_typedefs_debug.cc: Likewise. * testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc: Likewise. * testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc: Likewise. * testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc: Likewise. * testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc: Likewise. * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: Likewise. * testsuite/23_containers/vector/types/pmr_typedefs_debug.cc: Likewise. * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise. * testsuite/25_algorithms/copy/86658.cc: Likewise. * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise. * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise. * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise. * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276430 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/ChangeLog | 28 +++++++++++++++++++ .../17_intro/using_namespace_std_tr1_neg.cc | 2 +- libstdc++-v3/testsuite/20_util/hash/84998.cc | 1 + .../deque/types/pmr_typedefs_debug.cc | 1 + .../forward_list/pmr_typedefs_debug.cc | 1 + .../23_containers/list/pmr_typedefs_debug.cc | 1 + .../23_containers/map/pmr_typedefs_debug.cc | 1 + .../multimap/pmr_typedefs_debug.cc | 1 + .../multiset/pmr_typedefs_debug.cc | 1 + .../23_containers/set/pmr_typedefs_debug.cc | 1 + .../unordered_map/pmr_typedefs_debug.cc | 1 + .../unordered_multimap/pmr_typedefs_debug.cc | 1 + .../unordered_multiset/pmr_typedefs_debug.cc | 1 + .../unordered_set/pmr_typedefs_debug.cc | 1 + .../vector/cons/destructible_debug_neg.cc | 1 + .../vector/types/pmr_typedefs_debug.cc | 1 + .../binary_search/partitioned.cc | 1 + .../testsuite/25_algorithms/copy/86658.cc | 1 + .../25_algorithms/equal_range/partitioned.cc | 1 + .../lexicographical_compare/71545.cc | 1 + .../25_algorithms/lower_bound/partitioned.cc | 1 + .../25_algorithms/upper_bound/partitioned.cc | 1 + 22 files changed, 49 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 5b12f564f1b4..2a957675112e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,33 @@ 2019-10-01 Jonathan Wakely + * testsuite/17_intro/using_namespace_std_tr1_neg.cc: Skip test for + parallel mode. + * testsuite/20_util/hash/84998.cc: Likewise. + * testsuite/23_containers/deque/types/pmr_typedefs_debug.cc: Likewise. + * testsuite/23_containers/forward_list/pmr_typedefs_debug.cc: Likewise. + * testsuite/23_containers/list/pmr_typedefs_debug.cc: Likewise. + * testsuite/23_containers/map/pmr_typedefs_debug.cc: Likewise. + * testsuite/23_containers/multimap/pmr_typedefs_debug.cc: Likewise. + * testsuite/23_containers/multiset/pmr_typedefs_debug.cc: Likewise. + * testsuite/23_containers/set/pmr_typedefs_debug.cc: Likewise. + * testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc: + Likewise. + * testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc: + Likewise. + * testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc: + Likewise. + * testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc: + Likewise. + * testsuite/23_containers/vector/cons/destructible_debug_neg.cc: + Likewise. + * testsuite/23_containers/vector/types/pmr_typedefs_debug.cc: Likewise. + * testsuite/25_algorithms/binary_search/partitioned.cc: Likewise. + * testsuite/25_algorithms/copy/86658.cc: Likewise. + * testsuite/25_algorithms/equal_range/partitioned.cc: Likewise. + * testsuite/25_algorithms/lexicographical_compare/71545.cc: Likewise. + * testsuite/25_algorithms/lower_bound/partitioned.cc: Likewise. + * testsuite/25_algorithms/upper_bound/partitioned.cc: Likewise. + * include/parallel/algo.h: Replace non-reserved names. * include/parallel/multiway_merge.h: Likewise. * include/parallel/multiway_mergesort.h: Likewise. diff --git a/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc b/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc index 312427601795..bdc415074248 100644 --- a/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc +++ b/libstdc++-v3/testsuite/17_intro/using_namespace_std_tr1_neg.cc @@ -18,7 +18,7 @@ // . // NB: parallel-mode uses TR1 bits... -#undef _GLIBCXX_PARALLEL +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include #include diff --git a/libstdc++-v3/testsuite/20_util/hash/84998.cc b/libstdc++-v3/testsuite/20_util/hash/84998.cc index 1cf57e9073c9..b00df2234159 100644 --- a/libstdc++-v3/testsuite/20_util/hash/84998.cc +++ b/libstdc++-v3/testsuite/20_util/hash/84998.cc @@ -17,6 +17,7 @@ // { dg-options "-D_GLIBCXX_DEBUG" } // { dg-do compile { target c++11 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } // PR libstdc++/84998 diff --git a/libstdc++-v3/testsuite/23_containers/deque/types/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/deque/types/pmr_typedefs_debug.cc index ac96584a6e0e..9bee219b58ff 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/types/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/types/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/forward_list/pmr_typedefs_debug.cc index 7df01d530f8e..66138ba830c3 100644 --- a/libstdc++-v3/testsuite/23_containers/forward_list/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/forward_list/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/23_containers/list/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/list/pmr_typedefs_debug.cc index d59f8c41d1d7..b1bb271aa1c7 100644 --- a/libstdc++-v3/testsuite/23_containers/list/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/list/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/23_containers/map/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/map/pmr_typedefs_debug.cc index d06673027e52..c959b6957ed0 100644 --- a/libstdc++-v3/testsuite/23_containers/map/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/map/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/23_containers/multimap/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/multimap/pmr_typedefs_debug.cc index 641fe26fdbeb..062e9b22c6da 100644 --- a/libstdc++-v3/testsuite/23_containers/multimap/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/multimap/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/23_containers/multiset/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/multiset/pmr_typedefs_debug.cc index 2fa4dda70c6c..5ac8f9861621 100644 --- a/libstdc++-v3/testsuite/23_containers/multiset/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/multiset/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/23_containers/set/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/set/pmr_typedefs_debug.cc index 785986c0673d..b705108c5e9f 100644 --- a/libstdc++-v3/testsuite/23_containers/set/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/set/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc index 8b3237ed4f69..73c7f3382654 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_map/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc index 50fcf10f5657..2328a3e52234 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_multimap/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc index 8a77d519adc4..a41c23b06e0b 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_multiset/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc index 93546dbb4766..c6422dbbfa75 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_set/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_debug_neg.cc b/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_debug_neg.cc index 061bb414f471..daeab2fe26b0 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_debug_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/cons/destructible_debug_neg.cc @@ -17,6 +17,7 @@ // { dg-options "-D_GLIBCXX_DEBUG" } // { dg-do compile { target c++11 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include diff --git a/libstdc++-v3/testsuite/23_containers/vector/types/pmr_typedefs_debug.cc b/libstdc++-v3/testsuite/23_containers/vector/types/pmr_typedefs_debug.cc index 62fb5b674cc8..1db6897a9e3d 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/types/pmr_typedefs_debug.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/types/pmr_typedefs_debug.cc @@ -17,6 +17,7 @@ // { dg-options "-std=gnu++17 -D_GLIBCXX_DEBUG" } // { dg-do compile { target c++17 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include static_assert(std::is_same_v< diff --git a/libstdc++-v3/testsuite/25_algorithms/binary_search/partitioned.cc b/libstdc++-v3/testsuite/25_algorithms/binary_search/partitioned.cc index 43d260ed1c31..14a437c308c6 100644 --- a/libstdc++-v3/testsuite/25_algorithms/binary_search/partitioned.cc +++ b/libstdc++-v3/testsuite/25_algorithms/binary_search/partitioned.cc @@ -17,6 +17,7 @@ // { dg-options "-D_GLIBCXX_DEBUG" } // { dg-do run { target c++11 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include #include diff --git a/libstdc++-v3/testsuite/25_algorithms/copy/86658.cc b/libstdc++-v3/testsuite/25_algorithms/copy/86658.cc index 7092c8b0ce10..410985cb5e09 100644 --- a/libstdc++-v3/testsuite/25_algorithms/copy/86658.cc +++ b/libstdc++-v3/testsuite/25_algorithms/copy/86658.cc @@ -17,6 +17,7 @@ // { dg-options "-D_GLIBCXX_DEBUG" } // { dg-do run } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include #include diff --git a/libstdc++-v3/testsuite/25_algorithms/equal_range/partitioned.cc b/libstdc++-v3/testsuite/25_algorithms/equal_range/partitioned.cc index a80fe66beff8..353fde53cce7 100644 --- a/libstdc++-v3/testsuite/25_algorithms/equal_range/partitioned.cc +++ b/libstdc++-v3/testsuite/25_algorithms/equal_range/partitioned.cc @@ -17,6 +17,7 @@ // { dg-options "-D_GLIBCXX_DEBUG" } // { dg-do run { target c++11 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include #include diff --git a/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/71545.cc b/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/71545.cc index 9c8c2938a0de..05af7e23b1b8 100644 --- a/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/71545.cc +++ b/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/71545.cc @@ -17,6 +17,7 @@ // { dg-options "-D_GLIBCXX_DEBUG" } // { dg-do link { target c++11 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include diff --git a/libstdc++-v3/testsuite/25_algorithms/lower_bound/partitioned.cc b/libstdc++-v3/testsuite/25_algorithms/lower_bound/partitioned.cc index e48facb71733..d53da3c199b2 100644 --- a/libstdc++-v3/testsuite/25_algorithms/lower_bound/partitioned.cc +++ b/libstdc++-v3/testsuite/25_algorithms/lower_bound/partitioned.cc @@ -17,6 +17,7 @@ // { dg-options "-D_GLIBCXX_DEBUG" } // { dg-do run { target c++11 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include #include diff --git a/libstdc++-v3/testsuite/25_algorithms/upper_bound/partitioned.cc b/libstdc++-v3/testsuite/25_algorithms/upper_bound/partitioned.cc index 7dd43b6074d1..7ad959297a9b 100644 --- a/libstdc++-v3/testsuite/25_algorithms/upper_bound/partitioned.cc +++ b/libstdc++-v3/testsuite/25_algorithms/upper_bound/partitioned.cc @@ -17,6 +17,7 @@ // { dg-options "-D_GLIBCXX_DEBUG" } // { dg-do run { target c++11 } } +// { dg-skip-if "" { *-*-* } { "-D_GLIBCXX_PARALLEL" } } #include #include -- 2.47.2