Fix meson warning
Meson warns on the calls to run_command.
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
This commit does as meson recommends, and adds check: true to all
run_command calls, which will be the default.
Change-Id: I281df6ed32c935ce7d3664a0ad628cc81dbac3a8
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/test/gen/meson.build b/test/gen/meson.build
index 2756633..a7da0a7 100644
--- a/test/gen/meson.build
+++ b/test/gen/meson.build
@@ -2,12 +2,13 @@
sdbuspp_gen_meson_ver = run_command(
sdbuspp_gen_meson_prog,
'--version',
+ check: true,
).stdout().strip().split('\n')[0]
-if sdbuspp_gen_meson_ver != 'sdbus++-gen-meson version 4'
+if sdbuspp_gen_meson_ver != 'sdbus++-gen-meson version 5'
warning('Generated meson files from wrong version of sdbus++-gen-meson.')
warning(
- 'Expected "sdbus++-gen-meson version 4", got:',
+ 'Expected "sdbus++-gen-meson version 5", got:',
sdbuspp_gen_meson_ver
)
endif