Skip to content

Commit

Permalink
Return error when platform doesn't have 64bit time_t
Browse files Browse the repository at this point in the history
    * ACE/tests/Time_Value_Test.cpp:
  • Loading branch information
jwillemsen committed Jul 14, 2024
1 parent edd8fa7 commit 9be4157
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ACE/tests/Time_Value_Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ run_main (int, ACE_TCHAR *[])
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("set_msec test failed: %d usecs should be 555000\n"),
msec_test3.usec ()));
++ret;
}

std::ostringstream ost;
Expand All @@ -211,11 +212,12 @@ run_main (int, ACE_TCHAR *[])
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("time_t not at least 64bit, this platform will have problems after 2038\n")));
++ret;
}
else
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("time_t at least 64bit, this platform will not have problems after 2038\n")));
ACE_TEXT ("time_t is at least 64bit, this platform will not have problems after 2038\n")));
}

ACE_END_TEST;
Expand Down

0 comments on commit 9be4157

Please sign in to comment.