mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 21:18:38 +00:00
15 lines
777 B
CMake
15 lines
777 B
CMake
# Redirect the loader's stdout so both console paths must survive as UTF-8.
|
|
execute_process(
|
|
COMMAND ${RUNNER} "${LOADER}" --game-dir "game-Игра" --overlay "overlay-保存"
|
|
--run "${GUEST}" -- hello 42
|
|
TIMEOUT 90 ENCODING UTF-8
|
|
RESULT_VARIABLE code OUTPUT_VARIABLE output ERROR_VARIABLE error)
|
|
if(NOT code STREQUAL "0" OR
|
|
NOT output MATCHES "console paths: GAME: -> [^\n]*game-Игра, writes -> [^\n]*overlay-保存\r?\n")
|
|
message(FATAL_ERROR "Runtime did not report both Unicode paths (exit ${code})\n${output}\n${error}")
|
|
endif()
|
|
if(NOT output MATCHES "(^|\n)tiny_game: OK(\r?\n|$)" OR
|
|
NOT output MATCHES "(^|\n)game exited with code 0(\r?\n|$)")
|
|
message(FATAL_ERROR "Synthetic guest did not finish successfully\n${output}\n${error}")
|
|
endif()
|