meson: call run_command with check=true

This avoids a warning in meson since the default value will change:
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300

It's probably best to use the new default (true) that the old (false)

Reviewed-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15776>
This commit is contained in:
Michel Zou 2022-04-06 20:09:27 +02:00 committed by Marge Bot
parent 1ecb440705
commit dbceb561b0
1 changed files with 2 additions and 1 deletions

View File

@ -387,7 +387,8 @@ if with_tests
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/2788
prog_winepath = find_program('winepath')
process_test_exe_full_path = run_command(
prog_winepath, '-w', process_test_exe.full_path()
prog_winepath, '-w', process_test_exe.full_path(),
check : true
).stdout().strip()
else
process_test_exe_full_path = process_test_exe.full_path()