diff options
author | Neeraj Kumar | 2010-07-25 19:01:22 +0000 |
---|---|---|
committer | Neeraj Kumar | 2010-07-25 19:01:22 +0000 |
commit | 62e6780188748164b4c8422142a87a6961ddbda9 (patch) | |
tree | ade9750f2c9a42d4459ef695e8d095cf851d9f95 /engines/testbed | |
parent | 184b704ddfeb9ad687c51cfa125108fcbdec863b (diff) | |
download | scummvm-rg350-62e6780188748164b4c8422142a87a6961ddbda9.tar.gz scummvm-rg350-62e6780188748164b4c8422142a87a6961ddbda9.tar.bz2 scummvm-rg350-62e6780188748164b4c8422142a87a6961ddbda9.zip |
TESTBED: minor addition of code to enable logging
svn-id: r51279
Diffstat (limited to 'engines/testbed')
-rw-r--r-- | engines/testbed/testbed.cpp | 3 | ||||
-rw-r--r-- | engines/testbed/testsuite.cpp | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/testbed/testbed.cpp b/engines/testbed/testbed.cpp index c7c2fd219d..bdf8badaa5 100644 --- a/engines/testbed/testbed.cpp +++ b/engines/testbed/testbed.cpp @@ -107,6 +107,9 @@ Common::Error TestbedEngine::run() { TestbedConfigManager cfMan(_testsuiteList, "testbed.config"); cfMan.selectTestsuites(); + + // Init logging + Testsuite::initLogging(true); // check if user wanted to exit. if (Engine::shouldQuit()) { diff --git a/engines/testbed/testsuite.cpp b/engines/testbed/testsuite.cpp index 4428169dd1..ea7d9c717a 100644 --- a/engines/testbed/testsuite.cpp +++ b/engines/testbed/testsuite.cpp @@ -93,6 +93,7 @@ void Testsuite::logPrintf(const char *fmt, ...) { if (_ws) { _ws->writeString(buffer); + debugCN(kTestbedLogOutput, "%s", buffer); } else { debugCN(kTestbedLogOutput, "%s", buffer); } @@ -109,6 +110,7 @@ void Testsuite::logDetailedPrintf(const char *fmt, ...) { if (_ws) { _ws->writeString(buffer); + debugCN(1, kTestbedLogOutput, "%s", buffer); } else { debugCN(1, kTestbedLogOutput, "%s", buffer); } |