aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2017-03-23 19:40:41 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2017-03-23 19:40:41 +0000
commit01e3c2296ab9c74724c6cde8cd2b224640ece969 (patch)
treef119d25108c1b59138201b97c1f112fdb7a93585 /libstdc++-v3
parent393ed575c4a713b7e73f5f963f728b78893e7d8d (diff)
downloadgcc-01e3c2296ab9c74724c6cde8cd2b224640ece969.zip
gcc-01e3c2296ab9c74724c6cde8cd2b224640ece969.tar.gz
gcc-01e3c2296ab9c74724c6cde8cd2b224640ece969.tar.bz2
Fix Debug Mode test failures
* 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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog9
-rw-r--r--libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc2
-rw-r--r--libstdc++-v3/testsuite/23_containers/list/operations/78389.cc2
-rw-r--r--libstdc++-v3/testsuite/23_containers/priority_queue/67085.cc1
-rw-r--r--libstdc++-v3/testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc2
5 files changed, 13 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index e5ffec5..a3b6d6d 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
diff --git a/libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc b/libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc
index 894acef..e433c6e 100644
--- a/libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc
+++ b/libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc
@@ -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 }
diff --git a/libstdc++-v3/testsuite/23_containers/list/operations/78389.cc b/libstdc++-v3/testsuite/23_containers/list/operations/78389.cc
index e0cc6e6..a35b2c9 100644
--- a/libstdc++-v3/testsuite/23_containers/list/operations/78389.cc
+++ b/libstdc++-v3/testsuite/23_containers/list/operations/78389.cc
@@ -48,7 +48,7 @@ bool operator<(const X&, const X&) {
if (++count_X >= throw_after_X) {
throw 666;
}
- return true;
+ return false;
}
diff --git a/libstdc++-v3/testsuite/23_containers/priority_queue/67085.cc b/libstdc++-v3/testsuite/23_containers/priority_queue/67085.cc
index 9f4da58..06c7a24 100644
--- a/libstdc++-v3/testsuite/23_containers/priority_queue/67085.cc
+++ b/libstdc++-v3/testsuite/23_containers/priority_queue/67085.cc
@@ -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>
diff --git a/libstdc++-v3/testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc b/libstdc++-v3/testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc
index a61d36f..1cc9285 100644
--- a/libstdc++-v3/testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc
+++ b/libstdc++-v3/testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc
@@ -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>