diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/test/test.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
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 @@ | |||
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include "linden_common.h" | 38 | #include "linden_common.h" |
39 | #include "llerrorcontrol.h" | ||
39 | #include "lltut.h" | 40 | #include "lltut.h" |
40 | 41 | ||
41 | #include <apr-1/apr_pools.h> | 42 | #include <apr-1/apr_pools.h> |
@@ -178,8 +179,18 @@ void stream_groups(std::ostream& s, const char* app) | |||
178 | } | 179 | } |
179 | } | 180 | } |
180 | 181 | ||
182 | void wouldHaveCrashed(const std::string& message) | ||
183 | { | ||
184 | tut::fail("llerrs message: " + message); | ||
185 | } | ||
186 | |||
181 | int main(int argc, char **argv) | 187 | int main(int argc, char **argv) |
182 | { | 188 | { |
189 | LLError::initForApplication("."); | ||
190 | LLError::setFatalFunction(wouldHaveCrashed); | ||
191 | LLError::setDefaultLevel(LLError::LEVEL_ERROR); | ||
192 | // *FIX: should come from error config file | ||
193 | |||
183 | #ifdef CTYPE_WORKAROUND | 194 | #ifdef CTYPE_WORKAROUND |
184 | ctype_workaround(); | 195 | ctype_workaround(); |
185 | #endif | 196 | #endif |
@@ -213,7 +224,7 @@ int main(int argc, char **argv) | |||
213 | if(APR_STATUS_IS_EOF(apr_err)) break; | 224 | if(APR_STATUS_IS_EOF(apr_err)) break; |
214 | if(apr_err) | 225 | if(apr_err) |
215 | { | 226 | { |
216 | char buf[255]; | 227 | char buf[255]; /* Flawfinder: ignore */ |
217 | std::cerr << "Error parsing options: " | 228 | std::cerr << "Error parsing options: " |
218 | << apr_strerror(apr_err, buf, 255) << std::endl; | 229 | << apr_strerror(apr_err, buf, 255) << std::endl; |
219 | return 1; | 230 | return 1; |