summaryrefslogtreecommitdiff
path: root/test cases/common
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-07-05 14:28:21 -0400
committerEli Schwartz <eschwartz93@gmail.com>2024-07-05 14:31:38 -0400
commit140c557c87eeacd3173a1d22f6bc5f6d6c7933b1 (patch)
treef4bede9ebd17be8041fb7381d41c892ce803302f /test cases/common
parentf2112d0baa379e01d7ce8a961005f5b7c102d9a9 (diff)
downloadmeson-140c557c87eeacd3173a1d22f6bc5f6d6c7933b1.tar.gz
configuration_data: add test case for regression when merging a confdata
Regression test for #13372
Diffstat (limited to 'test cases/common')
-rw-r--r--test cases/common/14 configure file/meson.build6
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 8e7d429c7..036a562b7 100644
--- a/test cases/common/14 configure file/meson.build
+++ b/test cases/common/14 configure file/meson.build
@@ -310,10 +310,16 @@ cdata = configuration_data({
'A_UNDEFINED' : false,
})
+# merging a confdata into another one should not mark the first as immutable
+cdata_test = configuration_data()
+cdata_test.merge_from(cdata)
+cdata.set_quoted('A_PATH', '/random/path')
+
configure_file(output : 'config9a.h',
configuration : cdata,
)
+
configure_file(output : 'config9b.h',
configuration : {
'B_STRING' : '"foo"',