upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/check_console_paths.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/test/check_console_paths.cmake')
-rw-r--r--runtime/test/check_console_paths.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/test/check_console_paths.cmake b/runtime/test/check_console_paths.cmake
index bdd74a7d1..9f9a699b1 100644
--- a/runtime/test/check_console_paths.cmake
+++ b/runtime/test/check_console_paths.cmake
@@ -1,12 +1,12 @@
1# Redirect the loader's stdout so both console paths must survive as UTF-8. 1# Redirect the loader's stdout so the console paths (GAME:, the overlay and T:'s folder in it) must survive as UTF-8.
2execute_process( 2execute_process(
3 COMMAND ${RUNNER} "${LOADER}" --game-dir "game-Игра" --overlay "overlay-保存" 3 COMMAND ${RUNNER} "${LOADER}" --game-dir "game-Игра" --overlay "overlay-保存"
4 --run "${GUEST}" -- hello 42 4 --run "${GUEST}" -- hello 42
5 TIMEOUT 90 ENCODING UTF-8 5 TIMEOUT 90 ENCODING UTF-8
6 RESULT_VARIABLE code OUTPUT_VARIABLE output ERROR_VARIABLE error) 6 RESULT_VARIABLE code OUTPUT_VARIABLE output ERROR_VARIABLE error)
7if(NOT code STREQUAL "0" OR 7if(NOT code STREQUAL "0" OR
8 NOT output MATCHES "console paths: GAME: -> [^\n]*game-Игра, writes -> [^\n]*overlay-保存\r?\n") 8 NOT output MATCHES "console paths: GAME: -> [^\n]*game-Игра, writes -> [^\n]*overlay-保存, T: -> [^\n]*overlay-保存[\\/]\\.gta6rt-temp[\\/][^\n]*pid[0-9]+\r?\n")
9 message(FATAL_ERROR "Runtime did not report both Unicode paths (exit ${code})\n${output}\n${error}") 9 message(FATAL_ERROR "Runtime did not report the Unicode paths (exit ${code})\n${output}\n${error}")
10endif() 10endif()
11if(NOT output MATCHES "(^|\n)tiny_game: OK(\r?\n|$)" OR 11if(NOT output MATCHES "(^|\n)tiny_game: OK(\r?\n|$)" OR
12 NOT output MATCHES "(^|\n)game exited with code 0(\r?\n|$)") 12 NOT output MATCHES "(^|\n)game exited with code 0(\r?\n|$)")