Skip to content

Commit

Permalink
configuration_data: add test case for regression when merging a confdata
Browse files Browse the repository at this point in the history
Regression test for mesonbuild#13372
  • Loading branch information
eli-schwartz committed Jul 5, 2024
1 parent f2112d0 commit 140c557
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test cases/common/14 configure file/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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"',
Expand Down

0 comments on commit 140c557

Please sign in to comment.