]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Print the exception string in a test. 18097/head
authorDavid Wells <drwells@email.unc.edu>
Thu, 6 Feb 2025 17:02:09 +0000 (12:02 -0500)
committerDavid Wells <drwells@email.unc.edu>
Thu, 6 Feb 2025 17:02:09 +0000 (12:02 -0500)
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.

tests/lac/full_matrix_mmult_01.cc
tests/lac/full_matrix_mmult_01.debug.output [new file with mode: 0644]
tests/lac/full_matrix_mmult_01.expect=run.debug.output [deleted file]

index 0071cc3ec014e8d4a0ce1d32f3a673f88da254d4..9174d5fecffa1f803f1aa08d875ea2a1413161f4 100644 (file)
@@ -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 (file)
index 0000000..e0ca936
--- /dev/null
@@ -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 (file)
index e69de29..0000000

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.