This addresses one known failure due to a bug in the upstream tests, and
a number of timeouts due to the algorithms running much more slowly with
debug mode checks enabled.
libstdc++-v3/ChangeLog:
PR libstdc++/90276
* testsuite/25_algorithms/pstl/alg_sorting/partial_sort.cc
[_GLIBCXX_DEBUG]: Add xfail-run-if for debug mode.
* testsuite/25_algorithms/pstl/alg_nonmodifying/nth_element.cc
[_GLIBCXX_DEBUG]: Reduce size of test data.
* testsuite/25_algorithms/pstl/alg_sorting/includes.cc:
Likewise.
* testsuite/25_algorithms/pstl/alg_sorting/set_util.h:
Likewise.
test_by_type(Generator1 generator1, Generator2 generator2, Compare comp)
{
using namespace std;
+#ifdef _GLIBCXX_DEBUG
+ size_t max_size = 1000;
+#else
size_t max_size = 10000;
+#endif
Sequence<T> in1(max_size, [](size_t v) { return T(v); });
Sequence<T> exp(max_size, [](size_t v) { return T(v); });
size_t m;
test_includes(Compare compare)
{
+#ifdef _GLIBCXX_DEBUG
+ const std::size_t n_max = 10000;
+#else
const std::size_t n_max = 1000000;
+#endif
// The rand()%(2*n+1) encourages generation of some duplicates.
std::srand(42);
// { dg-do run { target c++17 } }
// { dg-timeout-factor 3 }
// { dg-require-effective-target tbb_backend }
+// { dg-xfail-run-if "see PR 90276" { debug_mode } }
//===-- partial_sort.pass.cpp ---------------------------------------------===//
//
void
test_set_op(Compare compare)
{
+#ifdef _GLIBCXX_DEBUG
+ const std::size_t n_max = 1000;
+#else
const std::size_t n_max = 100000;
+#endif
// The rand()%(2*n+1) encourages generation of some duplicates.
std::srand(4200);