From 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:44:50 -0500 Subject: Second Life viewer sources 1.14.0.0 --- linden/indra/test/test.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'linden/indra/test/test.cpp') diff --git a/linden/indra/test/test.cpp b/linden/indra/test/test.cpp index d90bfdb..9eb1639 100644 --- a/linden/indra/test/test.cpp +++ b/linden/indra/test/test.cpp @@ -36,6 +36,7 @@ */ #include "linden_common.h" +#include "llerrorcontrol.h" #include "lltut.h" #include @@ -178,8 +179,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 @@ -213,7 +224,7 @@ int main(int argc, char **argv) if(APR_STATUS_IS_EOF(apr_err)) break; if(apr_err) { - char buf[255]; + char buf[255]; /* Flawfinder: ignore */ std::cerr << "Error parsing options: " << apr_strerror(apr_err, buf, 255) << std::endl; return 1; -- cgit v1.1