From: heister Date: Fri, 4 Oct 2013 18:23:40 +0000 (+0000) Subject: better way to fix release mode tests X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5ad47954017305d39cddc60cde5aa32de0555ff;p=dealii-svn.git better way to fix release mode tests git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31122 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/thread_local_storage_03.cc b/tests/base/thread_local_storage_03.cc index 0d35fc0609..36b1d2ee4c 100644 --- a/tests/base/thread_local_storage_03.cc +++ b/tests/base/thread_local_storage_03.cc @@ -51,9 +51,7 @@ void test () Threads::Thread t; t = Threads::new_thread (&X::f, x); - int value = t.return_value(); - - Assert (value == 42, + AssertThrow (t.return_value() == 42, ExcInternalError()); } diff --git a/tests/base/thread_local_storage_04.cc b/tests/base/thread_local_storage_04.cc index 8a4c977863..84e3aea0c1 100644 --- a/tests/base/thread_local_storage_04.cc +++ b/tests/base/thread_local_storage_04.cc @@ -54,17 +54,17 @@ void test () { Threads::Thread t; t = Threads::new_thread (&X::f, x); - Assert (t.return_value() == 10, + AssertThrow (t.return_value() == 10, ExcInternalError()); } { Threads::Thread 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()); }