From: David Wells Date: Thu, 6 Feb 2025 17:02:09 +0000 (-0500) Subject: Print the exception string in a test. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d4bab8841a359b1198e128add2e6d97667635c0;p=dealii.git Print the exception string in a test. This was the original intent of the test but since we didn't disable the call to std::abort on assertion failure it didn't work. --- diff --git a/tests/lac/full_matrix_mmult_01.cc b/tests/lac/full_matrix_mmult_01.cc index 0071cc3ec0..9174d5fecf 100644 --- a/tests/lac/full_matrix_mmult_01.cc +++ b/tests/lac/full_matrix_mmult_01.cc @@ -23,6 +23,7 @@ int main() { initlog(); + deal_II_exceptions::disable_abort_on_exception(); try { @@ -34,7 +35,8 @@ main() } catch (const dealii::ExceptionBase &exc) { - deallog << exc.get_exc_name() << std::endl; + exc.print_info(deallog.get_file_stream()); + deallog << std::flush; } return 0; diff --git a/tests/lac/full_matrix_mmult_01.debug.output b/tests/lac/full_matrix_mmult_01.debug.output new file mode 100644 index 0000000000..e0ca9360f6 --- /dev/null +++ b/tests/lac/full_matrix_mmult_01.debug.output @@ -0,0 +1,3 @@ + + The output matrix cannot be the same as the current matrix. +DEAL:: diff --git a/tests/lac/full_matrix_mmult_01.expect=run.debug.output b/tests/lac/full_matrix_mmult_01.expect=run.debug.output deleted file mode 100644 index e69de29bb2..0000000000