diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-07-26 21:45:05 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-07-26 21:45:05 +0000 |
commit | b74916f3604913634ebcb026218f6127bb196b15 (patch) | |
tree | ff32c5914830f09f490d0c412a125a3de43a3247 /test/common/testcommon.cpp | |
parent | 3fb02f866aab7fb0fae89df384b807bffe2a686c (diff) |
Create logger object in the right place to avoid accidental triggering.
Diffstat (limited to 'test/common/testcommon.cpp')
-rw-r--r-- | test/common/testcommon.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/common/testcommon.cpp b/test/common/testcommon.cpp index 0477509a..0f0f1f9a 100644 --- a/test/common/testcommon.cpp +++ b/test/common/testcommon.cpp @@ -739,8 +739,6 @@ int test(int argc, const char *argv[]) // Test ExcludeList { - TestLogger logger(Log::WARNING); - ExcludeList elist; // Check assumption TEST_THAT(Configuration::MultiValueSeparator == '\x01'); @@ -799,6 +797,7 @@ int test(int argc, const char *argv[]) #undef CASE_SENSITIVE + TestLogger logger(Log::WARNING); TEST_THAT(!logger.IsTriggered()); elist.AddDefiniteEntries(std::string("/foo")); TEST_THAT(!logger.IsTriggered()); |