Without previous commit, the test fails with: Build machine cpu family: aarch64 Build machine cpu: aarch64 Host machine cpu family: aarch64 Host machine cpu: aarch64 Target machine cpu family: aarch64 Target machine cpu: aarch64 Program foo found: YES Running command: /bin/echo baz --version --- stdout --- baz --version --- stderr --- test cases/unit/125 command list run_command/meson.build:12:0: ERROR: Assert failed: result.stdout() == 'bar baz --version 'pull/14295/head
parent
21279a2e30
commit
c55fde6125
3 changed files with 18 additions and 0 deletions
@ -0,0 +1,12 @@ |
||||
project('compiler_object_in_run_command', 'c') |
||||
|
||||
foo = find_program('foo', required: true) |
||||
# 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('echo', foo, '--version', check: false) |
||||
|
||||
if result.stdout() == '' and result.stderr() == '' |
||||
error('No output in stdout and stderr. Did the compiler run at all?') |
||||
endif |
||||
assert(result.stdout() == 'bar baz --version\n') |
@ -0,0 +1,2 @@ |
||||
[binaries] |
||||
foo = ['bar', 'baz'] |
Loading…
Reference in new issue