Merge pull request #21 from obelisk-complex/test/wire-up-exception-runtime-test

test: wire up the orphaned exception runtime test
- `core/libs/CMakeLists.txt`: registered `ExceptionRuntime.cpp` as `exception_runtime_tests`/`exception_runtime`, following the existing `Guest*.cpp` test pattern, linked against `libc`.
This commit is contained in:
boykopovar 2026-09-27 11:39:23 +03:00 committed by GitHub
commit fce5889d91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -346,6 +346,15 @@ if(BUILD_TESTING)
set_tests_properties(guest_strings PROPERTIES ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
endif()
add_executable(exception_runtime_tests tests/ExceptionRuntime.cpp)
target_include_directories(exception_runtime_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(exception_runtime_tests PRIVATE libc)
configure_windows_unwind(exception_runtime_tests)
add_test(NAME exception_runtime COMMAND exception_runtime_tests)
if(WIN32)
set_tests_properties(exception_runtime PROPERTIES ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
endif()
endif()
add_executable(application_heap_tests EXCLUDE_FROM_ALL tests/ApplicationHeap.cpp prx/libc/src/ApplicationHeap.cpp)