summaryrefslogtreecommitdiff
path: root/indra/test/test.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2019-03-05 13:57:02 -0500
committerOz Linden <oz@lindenlab.com>2019-03-05 13:57:02 -0500
commit07870a9ebb17e7a31df276f4ac2d8f52fec2a3b0 (patch)
tree44d347784baca004016feb5a7d88df51ff9f0eef /indra/test/test.cpp
parente86c0b3d0fbc5f91090241be959ef19bfffd8636 (diff)
rename crash handler to hook, and make them chainable by putting back the get and documenting it
Diffstat (limited to 'indra/test/test.cpp')
-rw-r--r--indra/test/test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/test/test.cpp b/indra/test/test.cpp
index 4f966aede8..52ac855d9f 100644
--- a/indra/test/test.cpp
+++ b/indra/test/test.cpp
@@ -75,7 +75,7 @@
#include <fstream>
-LLError::ErrCrashHandlerResult wouldHaveCrashed(const std::string& message)
+LLError::ErrFatalHookResult wouldHaveCrashed(const std::string& message)
{
tut::fail("fatal error message: " + message);
return LLError::ERR_DO_NOT_CRASH;
@@ -150,7 +150,7 @@ public:
mOldSettings(LLError::saveAndResetSettings()),
mRecorder(new RecordToTempFile(pool))
{
- LLError::setFatalHandler(wouldHaveCrashed);
+ LLError::setFatalHook(wouldHaveCrashed);
LLError::setDefaultLevel(level);
LLError::addRecorder(mRecorder);
}
@@ -531,7 +531,7 @@ int main(int argc, char **argv)
LLError::initForApplication(".", ".", false /* do not log to stderr */);
LLError::setDefaultLevel(LLError::LEVEL_DEBUG);
}
- LLError::setFatalHandler(wouldHaveCrashed);
+ LLError::setFatalHook(wouldHaveCrashed);
std::string test_app_name(argv[0]);
std::string test_log = test_app_name + ".log";
LLFile::remove(test_log);