summaryrefslogtreecommitdiff
path: root/ACE/tests/Time_Value_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/Time_Value_Test.cpp')
-rw-r--r--ACE/tests/Time_Value_Test.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/ACE/tests/Time_Value_Test.cpp b/ACE/tests/Time_Value_Test.cpp
index e8fdf8bda24..ac794d4885c 100644
--- a/ACE/tests/Time_Value_Test.cpp
+++ b/ACE/tests/Time_Value_Test.cpp
@@ -120,13 +120,20 @@ run_main (int, ACE_TCHAR *[])
// Test correct msec() convert; also checks for compile error reported in
// Bugzilla 3336.
- ACE_Time_Value msec_test (42, 555);
+ ACE_Time_Value msec_test (42, 555000);
ACE_UINT64 ms = 0;
msec_test.msec (ms);
if (ms != 42555)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("msec test failed: %Q should be 42555\n"),
ms));
+ const ACE_Time_Value msec_test2 (42, 555000);
+ ms = 0;
+ msec_test2.msec (ms);
+ if (ms != 42555)
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("msec const test failed: %Q should be 42555\n"),
+ ms));
ACE_END_TEST;