From 9be41577ed2fb86d6bfbc758fdb757ffb3ce61b7 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Sun, 14 Jul 2024 09:56:56 +0200 Subject: [PATCH] Return error when platform doesn't have 64bit time_t * ACE/tests/Time_Value_Test.cpp: --- ACE/tests/Time_Value_Test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ACE/tests/Time_Value_Test.cpp b/ACE/tests/Time_Value_Test.cpp index 08c55e5d26127..98bf4cab5eb7c 100644 --- a/ACE/tests/Time_Value_Test.cpp +++ b/ACE/tests/Time_Value_Test.cpp @@ -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; @@ -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;