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
This commit is contained in:
Jonathan Wakely 2017-03-23 19:40:41 +00:00 committed by Jonathan Wakely
parent 393ed575c4
commit 01e3c2296a
5 changed files with 13 additions and 3 deletions

View 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.

View 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 }

View File

@ -48,7 +48,7 @@ bool operator<(const X&, const X&) {
if (++count_X >= throw_after_X) {
throw 666;
}
return true;
return false;
}

View 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>

View 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>