mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-18 23:07:07 -05:00
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:
2 files changed
+3
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user