test cases/unit/24 compiler run_command/meson.build
raw| 1 | project('compiler_object_in_run_command', 'c') |
| 2 | cc = meson.get_compiler('c') |
| 3 | |
| 4 | # This test only checks that the compiler object can be passed to |
| 5 | # run_command(). If the compiler has been launched, it is expected |
| 6 | # to output something either to stdout or to stderr. |
| 7 | result = run_command(cc, '--version', check: false) |
| 8 | if result.stdout() == '' and result.stderr() == '' |
| 9 | error('No output in stdout and stderr. Did the compiler run at all?') |
| 10 | endif |