diff options
author | Steve Huston <shuston@riverace.com> | 2008-06-05 14:55:13 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2008-06-05 14:55:13 +0000 |
commit | bfa0d2a15a5f3077b0ad2b3f561cef49d6c90d94 (patch) | |
tree | 867a7d544e3388f11d38955dd5c9fd58c7ac9fe3 /ACE/tests/Time_Value_Test.cpp | |
parent | 3ef4475e668a30304da7cbcc11d7a1affaeec6d6 (diff) | |
download | ATCD-bfa0d2a15a5f3077b0ad2b3f561cef49d6c90d94.tar.gz |
ChangeLogTag:Thu Jun 5 14:52:43 UTC 2008 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/tests/Time_Value_Test.cpp')
-rw-r--r-- | ACE/tests/Time_Value_Test.cpp | 9 |
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; |