]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
moveable.cc: Actually run it in parallel-mode for check-parallel.
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 11 Apr 2011 17:50:39 +0000 (17:50 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 11 Apr 2011 17:50:39 +0000 (17:50 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/25_algorithms/heap/moveable.cc
libstdc++-v3/testsuite/25_algorithms/inplace_merge/moveable.cc
libstdc++-v3/testsuite/25_algorithms/next_permutation/moveable.cc
libstdc++-v3/testsuite/25_algorithms/prev_permutation/moveable.cc
libstdc++-v3/testsuite/25_algorithms/remove/moveable.cc
libstdc++-v3/testsuite/25_algorithms/remove_if/moveable.cc
libstdc++-v3/testsuite/25_algorithms/rotate/moveable.cc
libstdc++-v3/testsuite/25_algorithms/sort_heap/check_compare_by_value.cc
libstdc++-v3/testsuite/25_algorithms/stable_partition/moveable.cc
libstdc++-v3/testsuite/25_algorithms/unique/moveable.cc

index 3c51ed3c38f90c8c4fbafe0b6a8d3e9213c76e5c..c4ed61f53762f3dd73c26c1e940a8da68b40d51f 100644 (file)
@@ -1,3 +1,20 @@
+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>
 
        PR libstdc++/48541
index 632d13ef5abc6d63a52ee7ba5159092857b970f9..1506b5f72f7e893096da3336d412e8c82f736cce 100644 (file)
@@ -1,6 +1,6 @@
 // { 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.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 
 #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 <testsuite_hooks.h>
 #include <testsuite_iterators.h>
index f7a35ffec2cd624386184c029999eec034a164b4..00ae7f21d480072b056372312aaca00f878890f7 100644 (file)
@@ -1,6 +1,6 @@
 // { 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
 // software; you can redistribute it and/or modify it under the
 
 // 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 <testsuite_hooks.h>
 #include <testsuite_iterators.h>
index a227e137761da212837e0b6a8f2c95395ed5307c..1994ddc6ec414742e495fd307b156bcf6f590250 100644 (file)
@@ -1,6 +1,6 @@
 // { 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
 // software; you can redistribute it and/or modify it under the
 
 // 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 <testsuite_hooks.h>
 #include <testsuite_iterators.h>
@@ -82,8 +78,13 @@ test4()
       std::copy(array, array + 6, temp_array);
       Container con(temp_array, temp_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, 
                                           array, array + 6) );
+#endif
     }
   VERIFY( !next_permutation(array,array + 6) );
   for(int i = 0; i < 6; ++i)
@@ -106,8 +107,13 @@ test5()
       std::copy(array, array + 6, temp_array);
       Container con(temp_array, temp_array + 6);
       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,
                                           array, array + 6, are_ordered) );
+#endif
     }
   VERIFY( !next_permutation(array,array + 6, are_ordered) );
   for(int i = 0; i < 6; ++i)
index 5570239b01f552e409708173a45a4add88c9bc14..fe3ea2c33a99c897008c7a36b2e18aedc283b27c 100644 (file)
@@ -1,6 +1,6 @@
 // { 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
 // software; you can redistribute it and/or modify it under the
 
 // 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 <testsuite_hooks.h>
 #include <testsuite_iterators.h>
@@ -82,8 +78,13 @@ test4()
       std::copy(array, array + 6, temp_array);
       Container con(temp_array, temp_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, 
                                            array, array + 6) );
+#endif
     }
   VERIFY( !prev_permutation(array,array + 6)) ;
   for(int i = 0; i < 6; ++i)
@@ -106,8 +107,13 @@ test5()
       std::copy(array, array + 6, temp_array);
       Container con(temp_array, temp_array + 6);
       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, 
                                            array, array + 6, are_ordered) );
+#endif
     }
   VERIFY( !prev_permutation(array,array + 6, are_ordered) );
   for(int i = 0; i < 6; ++i)
index 94ceded74188bc79ad31caa9fbf04df0b56653a4..42aa9971db4323f2e5a4788ee53d55951025057b 100644 (file)
@@ -1,6 +1,6 @@
 // { 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.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 
 #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 <testsuite_hooks.h>
 #include <testsuite_iterators.h>
index bb447d0559dfc556db1e018a2e4c550ed9b9c63a..8b2026f7ea97016d89a536397f1ade914c207195 100644 (file)
@@ -1,6 +1,6 @@
 // { 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.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 
 #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 <testsuite_hooks.h>
 #include <testsuite_iterators.h>
index ac9e0b3090972eca162b177cc13fd2e80983d287..6b6665ae49092c7224f8e56b0c7791e71a2c9f4f 100644 (file)
@@ -1,6 +1,6 @@
 // { 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.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 
 #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 <testsuite_hooks.h>
 #include <testsuite_iterators.h>
@@ -43,8 +39,6 @@ typedef test_container<rvalstruct, forward_iterator_wrapper> Fcontainer;
 typedef test_container<rvalstruct, bidirectional_iterator_wrapper> Bcontainer; 
 typedef test_container<rvalstruct, random_access_iterator_wrapper> Rcontainer; 
 
-
-
 void
 test1()
 {
index 32cff8fd8548fa5af03b229c41b2ced06373ca72..bb61cffbb2356932ffdee08065a1e44b89844c13 100644 (file)
 
 #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 <testsuite_hooks.h>
 #include <testsuite_iterators.h>
index fe46463df4fbad591074b6477642e95f61c00f26..b649b10e3cdc673754465c994babd3d588a4856e 100644 (file)
@@ -1,6 +1,6 @@
 // { 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
 // software; you can redistribute it and/or modify it under the
 
 // 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 <functional>
 #include <testsuite_hooks.h>
index fd6da1168e2b6389ebf4c3219d47c1ba1aba5d0d..75e1eb525853f1c65de4ecf07efe215b428273eb 100644 (file)
@@ -1,6 +1,6 @@
 // { 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.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 
 #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 <algorithm>
 #include <functional>