From: Matthias Maier Date: Wed, 16 Oct 2013 10:41:21 +0000 (+0000) Subject: Print out exception details in a portable manner X-Git-Tag: v8.1.0~570^2~49 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=917f63dd7d368c21c1b38793ce1c63d1779bd74a;p=dealii.git 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 --- 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)