diff options
Diffstat (limited to 'meson/test cases/unit/24 compiler run_command/meson.build')
-rw-r--r-- | meson/test cases/unit/24 compiler run_command/meson.build | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meson/test cases/unit/24 compiler run_command/meson.build b/meson/test cases/unit/24 compiler run_command/meson.build new file mode 100644 index 000000000..6d9e0b969 --- /dev/null +++ b/meson/test cases/unit/24 compiler run_command/meson.build @@ -0,0 +1,10 @@ +project('compiler_object_in_run_command', 'c') +cc = meson.get_compiler('c') + +# This test only checks that the compiler object can be passed to +# run_command(). If the compiler has been launched, it is expected +# to output something either to stdout or to stderr. +result = run_command(cc, '--version') +if result.stdout() == '' and result.stderr() == '' + error('No output in stdout and stderr. Did the compiler run at all?') +endif |