Merge pull request #7247 from adriadam10/fix/main-large-file-serial

fix(main): run the large cache file test alone with a longer hang limit
This commit is contained in:
Adrià authored and GitHub committed 2026-10-17 21:26:10 +02:00
commit 922dc8999e
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1595,7 +1595,7 @@ if(BUILD_TESTING)
set_tests_properties(agc_driver_partially_resident_pending_stores PROPERTIES ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
endif()
add_test(NAME agc_shader_disk_cache_large_file COMMAND agc_shader_disk_cache_tests --large-file)
set_tests_properties(agc_shader_disk_cache_large_file PROPERTIES SKIP_RETURN_CODE 77 WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" TIMEOUT 240)
set_tests_properties(agc_shader_disk_cache_large_file PROPERTIES SKIP_RETURN_CODE 77 RUN_SERIAL TRUE WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" TIMEOUT 240)
if(WIN32)
set_tests_properties(agc_shader_disk_cache_large_file PROPERTIES ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
endif()
@@ -763,8 +763,8 @@ int runLargeFileWrite() {
written->set_exception(std::current_exception());
}
}).detach();
if (result.wait_for(std::chrono::seconds(120)) != std::future_status::ready) {
std::cerr << "WriteFileAtomically did not return within 120 s for a file of more than 2 GiB\n";
if (result.wait_for(std::chrono::seconds(200)) != std::future_status::ready) {
std::cerr << "WriteFileAtomically did not return within 200 s for a file of more than 2 GiB\n";
std::cerr.flush();
std::_Exit(1);
}