]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix tests (throw in assert change)
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 15 Feb 2013 23:17:04 +0000 (23:17 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 15 Feb 2013 23:17:04 +0000 (23:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@28422 0785d39b-7218-0410-832d-ea1e28bc413d

tests/hp/fe_collection_04.cc

index 77bdf0abb000559cfa03dacf50dd92e12dfa2424..5826b58e01af666efdb614de987d4c10e66a6484 100644 (file)
@@ -42,13 +42,14 @@ void test ()
   fe_collection.push_back (FESystem<dim>(FE_Q<dim>(2),dim));
 
                                   // we will get an assertion failure in
-                                  // n_blocks here. what it returns instead
-                                  // is then meaningless but it will in fact
-                                  // be the number of blocks of the first
-                                  // element of the collection, which here is
-                                  // one
-  Assert (fe_collection.n_blocks() == 1,
-         ExcInternalError());
+                                  // n_blocks here.
+  try
+    {
+      fe_collection.n_blocks();
+    }
+  catch (...)
+    {
+    }
 
   deallog << "OK" << std::endl;
 }

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.