summaryrefslogtreecommitdiff
path: root/test cases/common/130 include order/inc3
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2023-03-31 01:11:19 +0200
committerEli Schwartz <eschwartz93@gmail.com>2023-03-30 22:06:31 -0400
commit410f3dfc1b76ef42275a769a794503b41ea1ae29 (patch)
tree2e1602b91210b9083ae806e574d063fb7b3499db /test cases/common/130 include order/inc3
parent9c526974dcfad0191d77550bd636f242bbfa8367 (diff)
downloadmeson-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.build2
-rw-r--r--test cases/common/130 include order/inc3/prefer-build-dir-over-src-dir.h1
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"