summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2019-11-18 20:17:01 -0500
committerNat Goodspeed <nat@lindenlab.com>2020-03-25 19:21:16 -0400
commitb41a2eff4545b361afbee5d32f5d0f679702b203 (patch)
tree1281505bb2695960604e36bef452fd6765180692 /indra
parentcc9bdbcf19354c323c3f090949636267f54851e0 (diff)
DRTVWR-476: Add LLTHROW()/LOG_UNHANDLED_EXCEPTION() test.
llexception_test.cpp is about discovering appropriate infrastructure to get good information from the LLTHROW() and LOG_UNHANDLED_EXCEPTION() mechanism. But we didn't before have a test that actually exercises them. Now we do.
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/tests/llexception_test.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/llcommon/tests/llexception_test.cpp b/indra/llcommon/tests/llexception_test.cpp
index 6bee1943c2..8ddf636cd1 100644
--- a/indra/llcommon/tests/llexception_test.cpp
+++ b/indra/llcommon/tests/llexception_test.cpp
@@ -305,4 +305,19 @@ namespace tut
std::cout << center("int", '=', margin) << std::endl;
catch_several(throw_int, "throw_int");
}
+
+ template<> template<>
+ void object::test<2>()
+ {
+ set_test_name("reporting exceptions");
+
+ try
+ {
+ LLTHROW(LLException("badness"));
+ }
+ catch (...)
+ {
+ LOG_UNHANDLED_EXCEPTION("llexception test<2>()");
+ }
+ }
} // namespace tut