Tests: Optionally skip tests requiring 64-bit time_t

On some platforms, `time_t` is always 32-bit.  Add an explicit option
to skip tests that require 64-bit `time_t`.
This commit is contained in:
Brad King
2025-07-16 14:12:34 -04:00
parent 14e21fa992
commit a760a74abf
2 changed files with 2 additions and 0 deletions

View File

@@ -747,6 +747,7 @@ add_RunCMake_test(set_property)
add_RunCMake_test(string
-DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}
-DCMAKE_SYSTEM_PROCESSOR=${CMAKE_SYSTEM_PROCESSOR}
-DCMake_TEST_NO_64BIT_TIME=${CMake_TEST_NO_64BIT_TIME}
)
add_RunCMake_test(test_include_dirs)
add_RunCMake_test(BundleUtilities)

View File

@@ -23,6 +23,7 @@ run_cmake(JoinNoVar)
run_cmake(Timestamp)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "AIX" # FIXME: Needs 64-bit build
AND NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS" # FIXME: Needs 64-bit build
AND NOT CMake_TEST_NO_64BIT_TIME
)
run_cmake(Timestamp2038)
endif()