From fd673f296a9070dd0085108dca9bbd7ad8dd4e1c Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 9 Oct 2013 18:37:26 +0000 Subject: [PATCH] 58659.cc: Use VERIFY instead of aborting. * testsuite/20_util/shared_ptr/cons/58659.cc: Use VERIFY instead of aborting. From-SVN: r203325 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/testsuite/20_util/shared_ptr/cons/58659.cc | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 60978e8a17d..5f1fb321ae8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2013-10-09 Jonathan Wakely + + * testsuite/20_util/shared_ptr/cons/58659.cc: Use VERIFY instead of + aborting. + 2013-10-09 Marcus Shawcroft * testsuite/20_util/shared_ptr/cons/58659.cc: Use __builtin_abort(). diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/58659.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/58659.cc index 1b823bc50e2..9315796b240 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/58659.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/58659.cc @@ -47,8 +47,7 @@ namespace std void deallocate(value_type* p, size_t n) { - if (n != 1 || p != (void*)storage || !allocated) - __builtin_abort(); + VERIFY(n == 1 && p == (void*)storage && allocated); allocated = false; }