diff options
author | Oz Linden <oz@lindenlab.com> | 2019-03-05 04:44:29 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2019-03-05 04:44:29 -0500 |
commit | e86c0b3d0fbc5f91090241be959ef19bfffd8636 (patch) | |
tree | 3e72f1f8f54facf84fb0f748fc4239a839780a81 /indra/test | |
parent | e409c0492f1b1ce63606c0b693c92cdb36dcc28b (diff) |
fix error message reporting?
Diffstat (limited to 'indra/test')
-rw-r--r-- | indra/test/test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/test/test.cpp b/indra/test/test.cpp index 5dabcbbc58..4f966aede8 100644 --- a/indra/test/test.cpp +++ b/indra/test/test.cpp @@ -75,9 +75,10 @@ #include <fstream> -void wouldHaveCrashed(const std::string& message) +LLError::ErrCrashHandlerResult wouldHaveCrashed(const std::string& message) { tut::fail("fatal error message: " + message); + return LLError::ERR_DO_NOT_CRASH; } namespace tut @@ -149,7 +150,7 @@ public: mOldSettings(LLError::saveAndResetSettings()), mRecorder(new RecordToTempFile(pool)) { - LLError::overrideCrashOnError(wouldHaveCrashed); + LLError::setFatalHandler(wouldHaveCrashed); LLError::setDefaultLevel(level); LLError::addRecorder(mRecorder); } @@ -530,7 +531,7 @@ int main(int argc, char **argv) LLError::initForApplication(".", ".", false /* do not log to stderr */); LLError::setDefaultLevel(LLError::LEVEL_DEBUG); } - LLError::overrideCrashOnError(wouldHaveCrashed); + LLError::setFatalHandler(wouldHaveCrashed); std::string test_app_name(argv[0]); std::string test_log = test_app_name + ".log"; LLFile::remove(test_log); |