]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Test mpi/hp_cell_weights_03: signal failure with a nonzero exit status
authorMatthias Maier <tamiko@43-1.org>
Tue, 20 Jun 2023 19:06:07 +0000 (14:06 -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_03.cc

index 83492ee5808a4447f7b8dc8b067183a96158c317..c59fbff275fbd6adbb7af3b1c2d909cf8ce8dff0 100644 (file)
@@ -113,6 +113,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.