summaryrefslogtreecommitdiff
path: root/ACE/tests/Time_Value_Test.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2008-06-04 16:07:07 +0000
committerSteve Huston <shuston@riverace.com>2008-06-04 16:07:07 +0000
commitc43c69fc29e7a975c40a60fbf0a5733c64942c99 (patch)
treeed901aacb19ca7a4056323a22ed0055eb556f079 /ACE/tests/Time_Value_Test.cpp
parentec6c162bdc5c9bfc7b0acdb9fc5e8ff7f425b96c (diff)
downloadATCD-c43c69fc29e7a975c40a60fbf0a5733c64942c99.tar.gz
ChangeLogTag:Wed Jun 4 16:05:54 UTC 2008 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/tests/Time_Value_Test.cpp')
-rw-r--r--ACE/tests/Time_Value_Test.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/ACE/tests/Time_Value_Test.cpp b/ACE/tests/Time_Value_Test.cpp
index b40cb7c4295..e8fdf8bda24 100644
--- a/ACE/tests/Time_Value_Test.cpp
+++ b/ACE/tests/Time_Value_Test.cpp
@@ -118,6 +118,16 @@ run_main (int, ACE_TCHAR *[])
tv1 *= -10.0;
ACE_ASSERT (tv1 == tv2);
+ // Test correct msec() convert; also checks for compile error reported in
+ // Bugzilla 3336.
+ ACE_Time_Value msec_test (42, 555);
+ 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));
+
ACE_END_TEST;
return ret;