diff options
author | Johnny Willemsen <jwillemsen@users.noreply.github.com> | 2016-12-23 10:59:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-23 10:59:16 +0100 |
commit | 56c6908e1a0c02ee9ec44326d532ab4136acca00 (patch) | |
tree | 0a7a063aa37760e30b62c4dbeceb11ec863a551b | |
parent | 5914983f2c0c42d7c71b63e02ef60fa55c9a54ad (diff) | |
parent | f8a5c50179246cc09f96a75ee47560b5b9a5306e (diff) | |
download | ATCD-56c6908e1a0c02ee9ec44326d532ab4136acca00.tar.gz |
Merge pull request #340 from jwillemsen/master
Extended test to check that max_time is not {0, -1}
-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(), |