diff options
Diffstat (limited to 'runtime/test/check_console_paths.cmake')
| -rw-r--r-- | runtime/test/check_console_paths.cmake | 6 |
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. |
| 2 | execute_process( | 2 | execute_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) |
| 7 | if(NOT code STREQUAL "0" OR | 7 | if(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}") |
| 10 | endif() | 10 | endif() |
| 11 | if(NOT output MATCHES "(^|\n)tiny_game: OK(\r?\n|$)" OR | 11 | if(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|$)") |