summaryrefslogtreecommitdiff
path: root/cppe/test/Common/TestCommon.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-03-08 19:55:27 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-03-08 19:55:27 +0000
commite6040d92b93c1549e2f3fb874cbf57ca60dae24a (patch)
tree344c4257215a4f4cace359670daace0ae8189229 /cppe/test/Common/TestCommon.cpp
parentBy default include tpc in client library (diff)
downloadice-e6040d92b93c1549e2f3fb874cbf57ca60dae24a.tar.bz2
ice-e6040d92b93c1549e2f3fb874cbf57ca60dae24a.tar.xz
ice-e6040d92b93c1549e2f3fb874cbf57ca60dae24a.zip
Fixed test trace on linux
Diffstat (limited to 'cppe/test/Common/TestCommon.cpp')
-rwxr-xr-xcppe/test/Common/TestCommon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cppe/test/Common/TestCommon.cpp b/cppe/test/Common/TestCommon.cpp
index c25201762cc..303d3f697ad 100755
--- a/cppe/test/Common/TestCommon.cpp
+++ b/cppe/test/Common/TestCommon.cpp
@@ -38,15 +38,15 @@ public:
{
IceUtil::StaticMutex::Lock sync(globalMutex);
string s = "[ ";
-#ifdef _WIN32
{
char buf[1024];
+#ifdef _WIN32
sprintf(buf, "%ld", GetTickCount());
- s += buf;
- }
#else
- s += IceUtil::Time::now().toMilliSeconds();
+ sprintf(buf, "%lu", (long)IceUtil::Time::now().toMilliSeconds());
#endif
+ s += buf;
+ }
s += ' ';
if(!category.empty())