diff options
-rw-r--r-- | ChangeLog-99b | 16 | ||||
-rw-r--r-- | tests/Time_Value_Test.cpp | 8 |
2 files changed, 17 insertions, 7 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b index 79c8fcd6934..0f6fd307d96 100644 --- a/ChangeLog-99b +++ b/ChangeLog-99b @@ -1,10 +1,16 @@ +Thu Aug 26 11:20:55 1999 David L. Levine <levine@cs.wustl.edu> + + * tests/Time_Value_Test.cpp (main): added a test showing + that ACE_Time_Value (2.5) == ACE_Time_Value (2). + The 2.5 gets coerced to a long with value 2. Beware . . . + Thu Aug 26 10:43:04 1999 Carlos O'Ryan <coryan@cs.wustl.edu> - * ace/config-sunos5.6.h: - egcs-2.95 under Solaris 5.6 does not need - ACE_HAS_STL_QUEUE_CONFLICT, thanks to Krishnakumar - B. <kitty@neo.shinko.co.jp> for reporting this problem. - This fixes [BUGID:264] + * ace/config-sunos5.6.h: + egcs-2.95 under Solaris 5.6 does not need + ACE_HAS_STL_QUEUE_CONFLICT, thanks to Krishnakumar + B. <kitty@neo.shinko.co.jp> for reporting this problem. + This fixes [BUGID:264] Thu Aug 26 07:29:42 1999 David L. Levine <levine@cs.wustl.edu> diff --git a/tests/Time_Value_Test.cpp b/tests/Time_Value_Test.cpp index 33e755aa0c6..46653d1f88d 100644 --- a/tests/Time_Value_Test.cpp +++ b/tests/Time_Value_Test.cpp @@ -190,12 +190,15 @@ main (int, ASYS_TCHAR *[]) ACE_Time_Value tv1; ACE_Time_Value tv2 (2); - ACE_Time_Value tv3 (100); + ACE_Time_Value tv3 (100U); ACE_Time_Value tv4 (1, 1000000); - ACE_Time_Value tv5 (2); + ACE_Time_Value tv5 (2UL); ACE_Time_Value tv6 (1, -1000000); ACE_Time_Value tv7 (2.0); + // Beware! 2.5 gets truncated to a long with value 2! + ACE_Time_Value tv8 (2.5); + ACE_ASSERT (tv1 == ACE_Time_Value (0)); ACE_ASSERT (tv2 < tv3); ACE_ASSERT (tv2 <= tv2); @@ -207,6 +210,7 @@ main (int, ASYS_TCHAR *[]) ACE_ASSERT (tv1 != tv2); ACE_ASSERT (tv6 == tv1); ACE_ASSERT (tv5 == tv7); + ACE_ASSERT (tv7 == tv8); // That's right! See above . . . #if defined (sun) && !defined (ACE_LACKS_LONGLONG_T) if (test_ace_u_longlong () != 0) |