mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
Merge pull request #1355 from MarcZX100/test/register-pthread-start
test(libkernel): register and bound pthread start test
This commit is contained in:
@@ -205,6 +205,16 @@ if(BUILD_TESTING)
|
||||
set_tests_properties(guest_pthread_attr PROPERTIES ENVIRONMENT_MODIFICATION
|
||||
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libkernel>")
|
||||
endif()
|
||||
add_test_executable(guest_pthread_start_tests ${LIBS_INCLUDE_DIR}/tests/PthreadStart.cpp)
|
||||
target_include_directories(guest_pthread_start_tests PRIVATE ${LIBS_INCLUDE_DIR})
|
||||
target_link_libraries(guest_pthread_start_tests PRIVATE libkernel libc)
|
||||
configure_windows_unwind(guest_pthread_start_tests)
|
||||
add_test(NAME guest_pthread_start COMMAND guest_pthread_start_tests)
|
||||
set_tests_properties(guest_pthread_start PROPERTIES TIMEOUT 20)
|
||||
if(WIN32)
|
||||
set_tests_properties(guest_pthread_start PROPERTIES TIMEOUT 60 ENVIRONMENT_MODIFICATION
|
||||
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libkernel>")
|
||||
endif()
|
||||
add_test_executable(guest_cond_timedwait_tests ${LIBS_INCLUDE_DIR}/tests/GuestCondTimedwait.cpp)
|
||||
target_include_directories(guest_cond_timedwait_tests PRIVATE ${LIBS_INCLUDE_DIR})
|
||||
target_link_libraries(guest_cond_timedwait_tests PRIVATE libkernel libc)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "prx/libkernel/Pthread/Pthread.hpp"
|
||||
#include "prx/libkernel/Pthread/include/Pthread.hpp"
|
||||
#include <future>
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
|
||||
Reference in New Issue
Block a user