Skip to content

Commit 1570289

Browse files
Nils Wernereli-schwartz
authored andcommitted
Test case for environment prepend/append acting like set
1 parent 2a9f40f commit 1570289

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test cases/common/41 test args/meson.build

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,15 @@ testfilect = custom_target('testfile',
3333
build_by_default : true,
3434
command : [copy, '@INPUT@', '@OUTPUT@'])
3535
test('custom target arg', tester, args : testfilect, env : env_array)
36+
37+
# https://github.com/mesonbuild/meson/issues/12327
38+
env = environment()
39+
env.append('PATH', 'something')
40+
41+
bash = find_program('bash')
42+
43+
custompathtgt = custom_target('testpathappend',
44+
output : 'nothing.txt',
45+
build_always : true,
46+
command : [bash, '-c', 'env'],
47+
env : env)

0 commit comments

Comments
 (0)