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:

(cherry picked from commit 9be4157)
  • Loading branch information
jwillemsen authored and mergify[bot] committed Jul 14, 2024
1 parent bf52b0e commit 54f604b
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 @@ -188,6 +188,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;
}

#ifdef ACE_HAS_CPP98_IOSTREAMS
Expand Down Expand Up @@ -215,11 +216,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 54f604b

Please sign in to comment.