From d0d4670f4941dcf7430fb1269c6613140ecf3ff7 Mon Sep 17 00:00:00 2001 From: Mark Lentczner Date: Tue, 6 Feb 2007 00:57:33 +0000 Subject: merge in of error-refactor-3 concludes (fixes) SL-31187 pair programmed and reviewed by markl and karen --- indra/test/test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'indra/test/test.cpp') 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 @@ -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 -- cgit v1.2.3