diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2019-08-12 17:43:09 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2019-08-12 17:43:09 -0400 |
commit | a5f58663c00d9d6ffa12d4b9f8cf4eeee70b4d5e (patch) | |
tree | 4655c10ed8baf9de95732f7bfbb8663e965b2a2a /indra/llcommon/tests/lllazy_test.cpp | |
parent | 3c552696bf8704e30c1525a4f9d4b3dd09034820 (diff) | |
parent | 4fce6dc4353dbf9ccd3c9c3aced89df72a4f3abd (diff) |
Automated merge with ssh://bitbucket.org/andreykproductengine/drtvwr-493
Diffstat (limited to 'indra/llcommon/tests/lllazy_test.cpp')
-rw-r--r-- | indra/llcommon/tests/lllazy_test.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/indra/llcommon/tests/lllazy_test.cpp b/indra/llcommon/tests/lllazy_test.cpp index 32a717f4fc..542306ee22 100644 --- a/indra/llcommon/tests/lllazy_test.cpp +++ b/indra/llcommon/tests/lllazy_test.cpp @@ -38,6 +38,7 @@ #include <boost/lambda/bind.hpp> // other Linden headers #include "../test/lltut.h" +#include "../test/catch_and_store_what_in.h" namespace bll = boost::lambda; @@ -200,15 +201,9 @@ namespace tut void lllazy_object::test<2>() { TestNeedsTesting tnt; - std::string threw; - try - { - tnt.toolate(); - } - catch (const LLLazyCommon::InstanceChange& e) - { - threw = e.what(); - } + std::string threw = catch_what<LLLazyCommon::InstanceChange>([&tnt](){ + tnt.toolate(); + }); ensure_contains("InstanceChange exception", threw, "replace LLLazy instance"); } |