Merge pull request #1355 from MarcZX100/test/register-pthread-start

test(libkernel): register and bound pthread start test
This commit is contained in:
Dean
2026-10-10 10:45:00 +13:00
committed by GitHub
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
#include "prx/libkernel/Pthread/Pthread.hpp"
#include "prx/libkernel/Pthread/include/Pthread.hpp"
#include <future>
#include <iostream>
#include <stdexcept>