summaryrefslogtreecommitdiff
path: root/ACE/tests/Time_Value_Test.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2010-01-21 08:20:00 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2010-01-21 08:20:00 +0000
commit55872eca2cd1a6ccf30e2b6573d4bb0833297e9a (patch)
tree48132bee6d170a35febecb3eb5810e28641f5e99 /ACE/tests/Time_Value_Test.cpp
parenta992990efb990ddbe47f195b55400e0e44aa74ea (diff)
downloadATCD-55872eca2cd1a6ccf30e2b6573d4bb0833297e9a.tar.gz
Thu Jan 21 08:13:30 UTC 2010 Johnny Willemsen <jwillemsen@remedy.nl>
* tests/Time_Value_Test.cpp: * tests/tests.mpc: * tests/run_test.lst: * tests/Bug_2434_Regression_Test.cpp: Moved the 64bit overflow test which fails on 64bit systems to its own file and marked that as not fixed
Diffstat (limited to 'ACE/tests/Time_Value_Test.cpp')
-rw-r--r--ACE/tests/Time_Value_Test.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/ACE/tests/Time_Value_Test.cpp b/ACE/tests/Time_Value_Test.cpp
index 008089d473c..17fc56e8f0c 100644
--- a/ACE/tests/Time_Value_Test.cpp
+++ b/ACE/tests/Time_Value_Test.cpp
@@ -30,7 +30,6 @@ ACE_RCSID(tests, Time_Value_Test, "$Id$")
#include "ace/Numeric_Limits.h"
-
int
run_main (int, ACE_TCHAR *[])
{
@@ -108,16 +107,6 @@ run_main (int, ACE_TCHAR *[])
tv1 *= 2.0;
ACE_ASSERT (tv1 == tv2);
- // test saturated result
- tv1.set (max_time_t - 1, 499999);
- tv2.set (max_time_t, 999999); // ACE_Time_Value::max_time
- tv1 *= 10.0;
- ACE_ASSERT (tv1 == tv2);
- tv1.set (max_time_t - 1, 499999);
- tv2.set (min_time_t, -999999);
- 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, 555000);
@@ -127,7 +116,7 @@ run_main (int, ACE_TCHAR *[])
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("msec test failed: %Q should be 42555\n"),
ms));
- const ACE_Time_Value msec_test2 (42, 555000);
+ ACE_Time_Value const msec_test2 (42, 555000);
ms = 0;
msec_test2.msec (ms);
if (ms != 42555)