test(libkernel): register pthread start coverage

This commit is contained in:
MarcZX100
2026-10-07 23:02:29 +00:00
parent f8c2f07246
commit 74a7a4ab05
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -200,6 +200,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 120)
if(WIN32)
set_tests_properties(guest_pthread_start PROPERTIES 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>