From d5ad47954017305d39cddc60cde5aa32de0555ff Mon Sep 17 00:00:00 2001 From: heister Date: Fri, 4 Oct 2013 18:23:40 +0000 Subject: [PATCH] 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 --- tests/base/thread_local_storage_03.cc | 4 +--- tests/base/thread_local_storage_04.cc | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) 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()); } -- 2.39.5