diff options
author | Steve Huston <shuston@riverace.com> | 2008-06-04 16:07:07 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2008-06-04 16:07:07 +0000 |
commit | b1ddf13bcfb8339cfb2446158db73f569b10408e (patch) | |
tree | ed901aacb19ca7a4056323a22ed0055eb556f079 | |
parent | 6e7181c4479dc3b8d9acb65a73b0f8e61f05ad4e (diff) | |
download | ATCD-b1ddf13bcfb8339cfb2446158db73f569b10408e.tar.gz |
ChangeLogTag:Wed Jun 4 16:05:54 UTC 2008 Steve Huston <shuston@riverace.com>
-rw-r--r-- | ACE/ChangeLog | 5 | ||||
-rw-r--r-- | ACE/tests/Time_Value_Test.cpp | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog index 35427541644..f72950de64b 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,8 @@ +Wed Jun 4 16:05:54 UTC 2008 Steve Huston <shuston@riverace.com> + + * tests/Time_Value_Test.cpp: Added a test case for Bugzilla #3336 + as reported by Aaron Scamehorn. + Wed Jun 4 14:36:55 UTC 2008 Jeff Parsons <j.parsons@vanderbilt.edu> * ace/Monitor_Point_Registry.cpp: 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; |