From dd72a4e12fb19f412a8ccf99000b078e2829ca14 Mon Sep 17 00:00:00 2001 From: maier Date: Wed, 16 Oct 2013 10:41:21 +0000 Subject: [PATCH] Print out exception details in a portable manner git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31253 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/lac/vector_memory.cc | 3 +-- tests/lac/vector_memory.output | 9 +-------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/lac/vector_memory.cc b/tests/lac/vector_memory.cc index 43c2c4a87d..7a20f0aaee 100644 --- a/tests/lac/vector_memory.cc +++ b/tests/lac/vector_memory.cc @@ -86,7 +86,6 @@ main() } catch (StandardExceptions::ExcMemoryLeak e) { - e.print_exc_data(logfile); - e.print_info(logfile); + deallog << "Exception: " << e.get_exc_name() << std::endl; } } diff --git a/tests/lac/vector_memory.output b/tests/lac/vector_memory.output index 199eb6cb97..41a042c920 100644 --- a/tests/lac/vector_memory.output +++ b/tests/lac/vector_memory.output @@ -1,11 +1,4 @@ DEAL::GrowingVectorMemory:Overall allocated vectors: 10 DEAL::GrowingVectorMemory:Maximum allocated vectors: 6 -An error occurred in file in function - dealii::GrowingVectorMemory::~GrowingVectorMemory() [with VECTOR = dealii::Vector] -The violated condition was: - current_alloc == 0 -The name and call sequence of the exception was: - StandardExceptions::ExcMemoryLeak(current_alloc) -Additional Information: -Destroying memory handler while 1 objects are still allocated +DEAL::Exception: StandardExceptions::ExcMemoryLeak(current_alloc) -- 2.39.5