diff options
author | Mark Lentczner <markl@lindenlab.com> | 2007-02-06 00:57:33 +0000 |
---|---|---|
committer | Mark Lentczner <markl@lindenlab.com> | 2007-02-06 00:57:33 +0000 |
commit | d0d4670f4941dcf7430fb1269c6613140ecf3ff7 (patch) | |
tree | e3d6b59c19cac6bc172ec5fb0131ffc8f4923b75 /indra/test/test.cpp | |
parent | 77f04c74eb1603bf2fadc30127d05378bfc7a48a (diff) |
merge in of error-refactor-3
concludes (fixes) SL-31187
pair programmed and reviewed by markl and karen
Diffstat (limited to 'indra/test/test.cpp')
-rw-r--r-- | indra/test/test.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/test/test.cpp b/indra/test/test.cpp index 2d727daaa5..312c52dc77 100644 --- a/indra/test/test.cpp +++ b/indra/test/test.cpp @@ -17,6 +17,7 @@ */ #include "linden_common.h" +#include "llerrorcontrol.h" #include "lltut.h" #include <apr-1/apr_pools.h> @@ -159,8 +160,18 @@ void stream_groups(std::ostream& s, const char* app) } } +void wouldHaveCrashed(const std::string& message) +{ + tut::fail("llerrs message: " + message); +} + int main(int argc, char **argv) { + LLError::initForApplication("."); + LLError::setFatalFunction(wouldHaveCrashed); + LLError::setDefaultLevel(LLError::LEVEL_ERROR); + // *FIX: should come from error config file + #ifdef CTYPE_WORKAROUND ctype_workaround(); #endif |