summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-26 16:22:17 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-26 16:22:17 +0000
commit6a8d6c6974fbb4d3a8d1de18ef0d43ec4f7ab4e8 (patch)
tree9b470ae948170a92d74c7cb6d0199184a71347c7
parent9e3dd3d9d943787bf3be5df9cd7486874358fa98 (diff)
downloadATCD-6a8d6c6974fbb4d3a8d1de18ef0d43ec4f7ab4e8.tar.gz
ChangeLogTag: Thu Aug 26 11:20:55 1999 David L. Levine <levine@cs.wustl.edu>
-rw-r--r--ChangeLog-99b16
-rw-r--r--tests/Time_Value_Test.cpp8
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)