]> https://gitweb.dealii.org/ - dealii.git/commitdiff
better way to fix release mode tests
authorTimo Heister <timo.heister@gmail.com>
Fri, 4 Oct 2013 18:23:40 +0000 (18:23 +0000)
committerTimo Heister <timo.heister@gmail.com>
Fri, 4 Oct 2013 18:23:40 +0000 (18:23 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31122 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/thread_local_storage_03.cc
tests/base/thread_local_storage_04.cc

index 0d35fc06095348604e952beeb2c3fde207ee0e73..36b1d2ee4c3edd38b5d7e6b80ab486113be39c0d 100644 (file)
@@ -51,9 +51,7 @@ void test ()
   Threads::Thread<int> t;
   t = Threads::new_thread (&X::f, x);
 
-  int value = t.return_value();
-  
-  Assert (value == 42,
+  AssertThrow (t.return_value() == 42,
           ExcInternalError());
 }
 
index 8a4c9778632a42daf3b785946cb6452f0c0696b2..84e3aea0c1ef61806481f840e89f14da8f75b344 100644 (file)
@@ -54,17 +54,17 @@ void test ()
   {
     Threads::Thread<int> t;
     t = Threads::new_thread (&X::f, x);
-    Assert (t.return_value() == 10,
+    AssertThrow (t.return_value() == 10,
             ExcInternalError());
   }
   {
     Threads::Thread<int> t;
     t = Threads::new_thread (&X::f, x);
-    Assert (t.return_value() == 11,
+    AssertThrow (t.return_value() == 11,
             ExcInternalError());
   }
 
-  Assert (counter == 12, ExcInternalError());
+  AssertThrow (counter == 12, ExcInternalError());
 }
 
 

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.