diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-02-04 22:59:23 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-02-05 14:53:12 +0200 |
commit | 302b486446ce76b8cfed2b471429ccb34b8f02f4 (patch) | |
tree | df1a9a4c263b5c634c381a656528efff8913da35 | |
parent | a3e2aa2d66202c6fec84222aba39437b3c3ca2d2 (diff) | |
download | meson-302b486446ce76b8cfed2b471429ccb34b8f02f4.zip meson-302b486446ce76b8cfed2b471429ccb34b8f02f4.tar.gz meson-302b486446ce76b8cfed2b471429ccb34b8f02f4.tar.bz2 |
Test using a File as an argument to run_command.
-rw-r--r-- | test cases/common/14 configure file/meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/common/14 configure file/meson.build b/test cases/common/14 configure file/meson.build index 4a2f15a..f40dc52 100644 --- a/test cases/common/14 configure file/meson.build +++ b/test cases/common/14 configure file/meson.build @@ -185,6 +185,12 @@ ret = run_command(check_file, inf, outf) if ret.returncode() != 0 error('Error running command: @0@\n@1@'.format(ret.stdout(), ret.stderr())) endif +# Now the same, but using a File object as an argument. +inf2 = files('invalid-utf8.bin.in')[0] +ret = run_command(check_file, inf2, outf) +if ret.returncode() != 0 + error('Error running command: @0@\n@1@'.format(ret.stdout(), ret.stderr())) +endif # Test copy of a binary file outf = configure_file(input : inf, |