diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2016-12-23 09:52:13 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2016-12-23 09:52:13 +0100 |
commit | f8a5c50179246cc09f96a75ee47560b5b9a5306e (patch) | |
tree | 19457bef02a5292c7cade2bcc5a59a7900e7573b | |
parent | e36573babc36aa538adc7f81febc9e2c18f0ef1e (diff) | |
download | ATCD-f8a5c50179246cc09f96a75ee47560b5b9a5306e.tar.gz |
Extended test to check that max_time is not {0, -1}
* ACE/tests/Time_Value_Test.cpp:
-rw-r--r-- | ACE/tests/Time_Value_Test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ACE/tests/Time_Value_Test.cpp b/ACE/tests/Time_Value_Test.cpp index 04ec4b3f553..70f281382f5 100644 --- a/ACE/tests/Time_Value_Test.cpp +++ b/ACE/tests/Time_Value_Test.cpp @@ -138,6 +138,8 @@ run_main (int, ACE_TCHAR *[]) ACE_Time_Value d5; d5.set(DBL_MAX); ACE_TEST_ASSERT (d5 == ACE_Time_Value::max_time); + ACE_TEST_ASSERT (ACE_Time_Value::max_time.sec () != 0); + ACE_TEST_ASSERT (ACE_Time_Value::max_time.usec () != -1); // Test performance of normalize() ACE_Time_Value v1(ACE_Numeric_Limits<time_t>::max(), |