summaryrefslogtreecommitdiff
path: root/cppe/test/Common/TestCommon.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-07-20 15:30:38 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-07-20 15:30:38 +0000
commit2128d86fd2a887d0f70b4f5907fb5f1435ef62f1 (patch)
tree56235515e4071e9113ee02b3e87ea224b84ae31f /cppe/test/Common/TestCommon.cpp
parentfix for bug 417 (diff)
downloadice-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-xcppe/test/Common/TestCommon.cpp9
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);
}