Fix Debug Mode test failures
authorJonathan Wakely <jwakely@redhat.com>
Thu, 23 Mar 2017 19:40:41 +0000 (19:40 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 23 Mar 2017 19:40:41 +0000 (19:40 +0000)
* testsuite/23_containers/array/tuple_interface/
tuple_element_debug_neg.cc: Adjust dg-error.
* testsuite/23_containers/list/operations/78389.cc: Fix less-than to
define a valid strict weak ordering.
* testsuite/23_containers/priority_queue/67085.cc: Disable test for
Debug Mode, due to debug checks making extra copies of predicate.
* testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
Likewise.

From-SVN: r246426

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc
libstdc++-v3/testsuite/23_containers/list/operations/78389.cc
libstdc++-v3/testsuite/23_containers/priority_queue/67085.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc

index e5ffec522c346d3711a33800756289455dc87d5e..a3b6d6d74f05dc682ac3c315c3e960f57f4b89e8 100644 (file)
@@ -1,5 +1,14 @@
 2017-03-23  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/23_containers/array/tuple_interface/
+       tuple_element_debug_neg.cc: Adjust dg-error.
+       * testsuite/23_containers/list/operations/78389.cc: Fix less-than to
+       define a valid strict weak ordering.
+       * testsuite/23_containers/priority_queue/67085.cc: Disable test for
+       Debug Mode, due to debug checks making extra copies of predicate.
+       * testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
+       Likewise.
+
        * doc/xml/faq.xml: Add link.
        * doc/xml/manual/backwards_compatibility.xml: Remove outdated
        information on pre-ISO headers. Replace broken link to C++ FAQ Lite.
index 894acefa31772c9a82ad53a762275f66cedc8f3d..e433c6e0a63d50f56be1efa4c4f615a8b6f4804f 100644 (file)
@@ -22,4 +22,4 @@
 
 typedef std::tuple_element<1, std::array<int, 1>>::type type;
 
-// { dg-error "static assertion failed" "" { target *-*-* } 316 }
+// { dg-error "static assertion failed" "" { target *-*-* } 323 }
index e0cc6e63c7648972ffa9bbc793078e33c89dacf4..a35b2c9897e9ff737defd2123d618bb166b92179 100644 (file)
@@ -48,7 +48,7 @@ bool operator<(const X&, const X&) {
   if (++count_X >= throw_after_X) {
     throw 666;
   }
-  return true;
+  return false;
 }
 
 
index 9f4da585dd809553cb952dbf917263c69053d527..06c7a243a38860dd43d4f70f0a6a4125ff9cad86 100644 (file)
@@ -16,6 +16,7 @@
 // <http://www.gnu.org/licenses/>.
 
 // { dg-do run { target c++11 } }
+// { dg-require-normal-mode "" }
 
 #include <queue>
 #include <testsuite_hooks.h>
index a61d36f67b3febb99d9d2da429f37d60bc208197..1cc92856dc71807ed6725f4df57350b5737bc98a 100644 (file)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do run }
+// { dg-require-normal-mode "" }
 
 #include <ext/pb_ds/priority_queue.hpp>
 #include <testsuite_hooks.h>