Commit 061217e9 by Paolo Carlini Committed by Paolo Carlini

moveable.cc: Actually run it in parallel-mode for check-parallel.

2011-04-11  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/25_algorithms/inplace_merge/moveable.cc: Actually run
	it in parallel-mode for check-parallel.
	* testsuite/25_algorithms/rotate/moveable.cc: Likewise.
	* testsuite/25_algorithms/stable_partition/moveable.cc: Likewise.
	* testsuite/25_algorithms/remove/moveable.cc: Likewise.
	* testsuite/25_algorithms/sort_heap/check_compare_by_value.cc:
	Likewise.
	* testsuite/25_algorithms/unique/moveable.cc: Likewise.
	* testsuite/25_algorithms/remove_if/moveable.cc: Likewise.
	* testsuite/25_algorithms/heap/moveable.cc: Likewise.

	* testsuite/25_algorithms/next_permutation/moveable.cc: Only skip
	the tests based on std::lexicographical_compare for check-parallel.
	* testsuite/25_algorithms/prev_permutation/moveable.cc: Likewise.

From-SVN: r172269
parent b8ce4e94
2011-04-11 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/25_algorithms/inplace_merge/moveable.cc: Actually run
it in parallel-mode for check-parallel.
* testsuite/25_algorithms/rotate/moveable.cc: Likewise.
* testsuite/25_algorithms/stable_partition/moveable.cc: Likewise.
* testsuite/25_algorithms/remove/moveable.cc: Likewise.
* testsuite/25_algorithms/sort_heap/check_compare_by_value.cc:
Likewise.
* testsuite/25_algorithms/unique/moveable.cc: Likewise.
* testsuite/25_algorithms/remove_if/moveable.cc: Likewise.
* testsuite/25_algorithms/heap/moveable.cc: Likewise.
* testsuite/25_algorithms/next_permutation/moveable.cc: Only skip
the tests based on std::lexicographical_compare for check-parallel.
* testsuite/25_algorithms/prev_permutation/moveable.cc: Likewise.
2011-04-10 Jonathan Wakely <jwakely.gcc@gmail.com> 2011-04-10 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/48541 PR libstdc++/48541
......
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++0x" }
// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
#undef _GLIBCXX_CONCEPT_CHECKS #undef _GLIBCXX_CONCEPT_CHECKS
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#undef _GLIBCXX_PARALLEL
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_iterators.h> #include <testsuite_iterators.h>
......
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++0x" }
// Copyright (C) 2009, 2010 Free Software Foundation, Inc. // Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
// 25.3.4 [lib.alg.merge] // 25.3.4 [lib.alg.merge]
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#undef _GLIBCXX_PARALLEL
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_iterators.h> #include <testsuite_iterators.h>
......
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++0x" }
// Copyright (C) 2009, 2010 Free Software Foundation, Inc. // Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
// 25.3.9 [lib.alg.permutation.generators] // 25.3.9 [lib.alg.permutation.generators]
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#undef _GLIBCXX_PARALLEL
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_iterators.h> #include <testsuite_iterators.h>
...@@ -82,8 +78,13 @@ test4() ...@@ -82,8 +78,13 @@ test4()
std::copy(array, array + 6, temp_array); std::copy(array, array + 6, temp_array);
Container con(temp_array, temp_array + 6); Container con(temp_array, temp_array + 6);
VERIFY( next_permutation(array, array + 6) ); VERIFY( next_permutation(array, array + 6) );
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#ifndef _GLIBCXX_PARALLEL
VERIFY( std::lexicographical_compare(temp_array, temp_array + 6, VERIFY( std::lexicographical_compare(temp_array, temp_array + 6,
array, array + 6) ); array, array + 6) );
#endif
} }
VERIFY( !next_permutation(array,array + 6) ); VERIFY( !next_permutation(array,array + 6) );
for(int i = 0; i < 6; ++i) for(int i = 0; i < 6; ++i)
...@@ -106,8 +107,13 @@ test5() ...@@ -106,8 +107,13 @@ test5()
std::copy(array, array + 6, temp_array); std::copy(array, array + 6, temp_array);
Container con(temp_array, temp_array + 6); Container con(temp_array, temp_array + 6);
VERIFY( next_permutation(array, array + 6, are_ordered) ); VERIFY( next_permutation(array, array + 6, are_ordered) );
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#ifndef _GLIBCXX_PARALLEL
VERIFY( std::lexicographical_compare(temp_array, temp_array + 6, VERIFY( std::lexicographical_compare(temp_array, temp_array + 6,
array, array + 6, are_ordered) ); array, array + 6, are_ordered) );
#endif
} }
VERIFY( !next_permutation(array,array + 6, are_ordered) ); VERIFY( !next_permutation(array,array + 6, are_ordered) );
for(int i = 0; i < 6; ++i) for(int i = 0; i < 6; ++i)
......
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++0x" }
// Copyright (C) 2009, 2010 Free Software Foundation, Inc. // Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
// 25.3.9 [lib.alg.permutation.generators] // 25.3.9 [lib.alg.permutation.generators]
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#undef _GLIBCXX_PARALLEL
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_iterators.h> #include <testsuite_iterators.h>
...@@ -82,8 +78,13 @@ test4() ...@@ -82,8 +78,13 @@ test4()
std::copy(array, array + 6, temp_array); std::copy(array, array + 6, temp_array);
Container con(temp_array, temp_array + 6); Container con(temp_array, temp_array + 6);
VERIFY( prev_permutation(array, array + 6) ); VERIFY( prev_permutation(array, array + 6) );
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#ifndef _GLIBCXX_PARALLEL
VERIFY( !std::lexicographical_compare(temp_array, temp_array + 6, VERIFY( !std::lexicographical_compare(temp_array, temp_array + 6,
array, array + 6) ); array, array + 6) );
#endif
} }
VERIFY( !prev_permutation(array,array + 6)) ; VERIFY( !prev_permutation(array,array + 6)) ;
for(int i = 0; i < 6; ++i) for(int i = 0; i < 6; ++i)
...@@ -106,8 +107,13 @@ test5() ...@@ -106,8 +107,13 @@ test5()
std::copy(array, array + 6, temp_array); std::copy(array, array + 6, temp_array);
Container con(temp_array, temp_array + 6); Container con(temp_array, temp_array + 6);
VERIFY( prev_permutation(array, array + 6, are_ordered) ); VERIFY( prev_permutation(array, array + 6, are_ordered) );
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#ifndef _GLIBCXX_PARALLEL
VERIFY( !std::lexicographical_compare(temp_array, temp_array + 6, VERIFY( !std::lexicographical_compare(temp_array, temp_array + 6,
array, array + 6, are_ordered) ); array, array + 6, are_ordered) );
#endif
} }
VERIFY( !prev_permutation(array,array + 6, are_ordered) ); VERIFY( !prev_permutation(array,array + 6, are_ordered) );
for(int i = 0; i < 6; ++i) for(int i = 0; i < 6; ++i)
......
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++0x" }
// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -22,10 +22,6 @@ ...@@ -22,10 +22,6 @@
#undef _GLIBCXX_CONCEPT_CHECKS #undef _GLIBCXX_CONCEPT_CHECKS
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#undef _GLIBCXX_PARALLEL
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_iterators.h> #include <testsuite_iterators.h>
......
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++0x" }
// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -22,10 +22,6 @@ ...@@ -22,10 +22,6 @@
#undef _GLIBCXX_CONCEPT_CHECKS #undef _GLIBCXX_CONCEPT_CHECKS
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#undef _GLIBCXX_PARALLEL
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_iterators.h> #include <testsuite_iterators.h>
......
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++0x" }
// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
#undef _GLIBCXX_CONCEPT_CHECKS #undef _GLIBCXX_CONCEPT_CHECKS
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#undef _GLIBCXX_PARALLEL
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_iterators.h> #include <testsuite_iterators.h>
...@@ -43,8 +39,6 @@ typedef test_container<rvalstruct, forward_iterator_wrapper> Fcontainer; ...@@ -43,8 +39,6 @@ typedef test_container<rvalstruct, forward_iterator_wrapper> Fcontainer;
typedef test_container<rvalstruct, bidirectional_iterator_wrapper> Bcontainer; typedef test_container<rvalstruct, bidirectional_iterator_wrapper> Bcontainer;
typedef test_container<rvalstruct, random_access_iterator_wrapper> Rcontainer; typedef test_container<rvalstruct, random_access_iterator_wrapper> Rcontainer;
void void
test1() test1()
{ {
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
#undef _GLIBCXX_CONCEPT_CHECKS #undef _GLIBCXX_CONCEPT_CHECKS
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#undef _GLIBCXX_PARALLEL
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
#include <testsuite_iterators.h> #include <testsuite_iterators.h>
......
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++0x" }
// Copyright (C) 2009, 2010 Free Software Foundation, Inc. // Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
// 25.2.12 [lib.alg.partitions] Partitions. // 25.2.12 [lib.alg.partitions] Partitions.
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#undef _GLIBCXX_PARALLEL
#include <algorithm> #include <algorithm>
#include <functional> #include <functional>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
......
// { dg-options "-std=gnu++0x" } // { dg-options "-std=gnu++0x" }
// Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
// Free Software Foundation, Inc. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -22,10 +22,6 @@ ...@@ -22,10 +22,6 @@
#undef _GLIBCXX_CONCEPT_CHECKS #undef _GLIBCXX_CONCEPT_CHECKS
// XXX FIXME: parallel-mode should deal correctly with moveable-only types
// per C++0x, at minimum smoothly fall back to serial.
#undef _GLIBCXX_PARALLEL
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
#include <functional> #include <functional>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment