diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-07-20 15:30:38 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-07-20 15:30:38 +0000 |
commit | 2128d86fd2a887d0f70b4f5907fb5f1435ef62f1 (patch) | |
tree | 56235515e4071e9113ee02b3e87ea224b84ae31f /cppe/test/Common/TestCommon.cpp | |
parent | fix for bug 417 (diff) | |
download | ice-2128d86fd2a887d0f70b4f5907fb5f1435ef62f1.tar.bz2 ice-2128d86fd2a887d0f70b4f5907fb5f1435ef62f1.tar.xz ice-2128d86fd2a887d0f70b4f5907fb5f1435ef62f1.zip |
added LogToFile property to tests.
Diffstat (limited to 'cppe/test/Common/TestCommon.cpp')
-rwxr-xr-x | cppe/test/Common/TestCommon.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cppe/test/Common/TestCommon.cpp b/cppe/test/Common/TestCommon.cpp index d5f825da248..86574df08ce 100755 --- a/cppe/test/Common/TestCommon.cpp +++ b/cppe/test/Common/TestCommon.cpp @@ -476,15 +476,18 @@ TestApplication::loadConfig(const PropertiesPtr& properties) TestApplication::TestApplication(const std::string& name) : _name(name) { -#ifdef _WIN32_WCE
- //_tprintfp = fopen(("log-" + _name + ".txt").c_str(), "w");
-#endif
} void TestApplication::setCommunicator(const CommunicatorPtr& communicator) { _communicator = communicator; +#ifdef _WIN32_WCE
+ if(communicator->getProperties()->getPropertyWithDefault("LogToFile", "0") != "0") + { + _tprintfp = fopen(("log-" + _name + ".txt").c_str(), "w");
+ } +#endif
_communicator->setLogger(new LoggerI); } |