]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Test mpi/hp_cell_weights_04: signal failure with a nonzero exit status 15394/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 20 Jun 2023 19:08:06 +0000 (14:08 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 20 Jun 2023 19:08:35 +0000 (14:08 -0500)
As we no longer compare output files for this (metis based) test we have
to signal an error condition (in this case we expect an exception to be
thrown!) with a nonzero exit status.

tests/mpi/hp_cell_weights_04.cc

index e03fd8a603a7ae674dc43cc4a852e6e75fc98602..a5d98a30662850b74c86dbfc43cbffe57c9c9a1f 100644 (file)
@@ -115,6 +115,9 @@ test()
   try
     {
       tria.execute_coarsening_and_refinement();
+      deallog << "Error: we did not throw an exception when we should have"
+              << std::endl;
+      std::abort();
     }
   catch (const ExceptionBase &e)
     {

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.