diff options
| author | Barnabás Pőcze <pobrn@protonmail.com> | 2023-03-31 01:11:19 +0200 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-03-30 22:06:31 -0400 |
| commit | 410f3dfc1b76ef42275a769a794503b41ea1ae29 (patch) | |
| tree | 2e1602b91210b9083ae806e574d063fb7b3499db /test cases/common/130 include order/inc3 | |
| parent | 9c526974dcfad0191d77550bd636f242bbfa8367 (diff) | |
| download | meson-410f3dfc1b76ef42275a769a794503b41ea1ae29.tar.gz | |
tests: add test to ensure that build dir is preferred to src dir
Extend the "common/include order" test to ensure that the build
directory is preferred over the source directory. For example,
when using `configure_file()`, the resulting file should be
preferred over a file with the same name in the source directory.
Diffstat (limited to 'test cases/common/130 include order/inc3')
| -rw-r--r-- | test cases/common/130 include order/inc3/meson.build | 2 | ||||
| -rw-r--r-- | test cases/common/130 include order/inc3/prefer-build-dir-over-src-dir.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test cases/common/130 include order/inc3/meson.build b/test cases/common/130 include order/inc3/meson.build new file mode 100644 index 000000000..3c100c496 --- /dev/null +++ b/test cases/common/130 include order/inc3/meson.build @@ -0,0 +1,2 @@ +configure_file(output: 'prefer-build-dir-over-src-dir.h', + configuration: configuration_data()) diff --git a/test cases/common/130 include order/inc3/prefer-build-dir-over-src-dir.h b/test cases/common/130 include order/inc3/prefer-build-dir-over-src-dir.h new file mode 100644 index 000000000..0b07943b8 --- /dev/null +++ b/test cases/common/130 include order/inc3/prefer-build-dir-over-src-dir.h @@ -0,0 +1 @@ +#error "inc3/prefer-build-dir-over-src-dir.h included" |
