mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-18 23:07:07 -05:00
test(libkernel): serialise the two dynamic loader tests that share their files
guest_dynamic_loader and guest_dynamic_loader_fixed_base run the same GuestDynamicLoader.cpp in the same working directory, and both copy the module fixture to anyps5-relinked-module-for-test.prx.guest.prx and anyps5-host-loaded-module-for-test.prx before loading it. Under ctest --parallel one test rewrote or removed a file the other had mapped: Bus error, or failed at GuestDynamicLoader.cpp:92. Give both one RESOURCE_LOCK.
This commit is contained in:
1 parent
79d7d26b6d
commit
6f94cba100
1 file changed
+2
-2
@@ -238,7 +238,7 @@ if(BUILD_TESTING)
|
||||
endif()
|
||||
add_test(NAME guest_dynamic_loader COMMAND guest_dynamic_loader_tests $<TARGET_FILE_NAME:guest_module_fixture>)
|
||||
set_tests_properties(guest_dynamic_loader PROPERTIES
|
||||
WORKING_DIRECTORY "$<TARGET_FILE_DIR:guest_module_fixture>")
|
||||
WORKING_DIRECTORY "$<TARGET_FILE_DIR:guest_module_fixture>" RESOURCE_LOCK guest_dynamic_loader_files)
|
||||
if(WIN32)
|
||||
set_tests_properties(guest_dynamic_loader PROPERTIES ENVIRONMENT_MODIFICATION
|
||||
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libkernel>")
|
||||
@@ -271,7 +271,7 @@ if(BUILD_TESTING)
|
||||
target_link_options(guest_dynamic_loader_fixed_base_tests PRIVATE -no-pie -fuse-ld=bfd)
|
||||
add_test(NAME guest_dynamic_loader_fixed_base COMMAND guest_dynamic_loader_fixed_base_tests $<TARGET_FILE_NAME:guest_module_fixture>)
|
||||
set_tests_properties(guest_dynamic_loader_fixed_base PROPERTIES
|
||||
WORKING_DIRECTORY "$<TARGET_FILE_DIR:guest_module_fixture>")
|
||||
WORKING_DIRECTORY "$<TARGET_FILE_DIR:guest_module_fixture>" RESOURCE_LOCK guest_dynamic_loader_files)
|
||||
endif()
|
||||
add_test_executable(guest_module_info_tests ${LIBS_INCLUDE_DIR}/tests/GuestModuleInfo.cpp)
|
||||
target_include_directories(guest_module_info_tests PRIVATE ${LIBS_INCLUDE_DIR})
|
||||
|
||||
Reference in new issue
Block a user