Skip to content

Commit

Permalink
Test case for environment prepend/append acting like set
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Werner authored and eli-schwartz committed Jun 24, 2024
1 parent 2a9f40f commit 1570289
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test cases/common/41 test args/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,15 @@ testfilect = custom_target('testfile',
build_by_default : true,
command : [copy, '@INPUT@', '@OUTPUT@'])
test('custom target arg', tester, args : testfilect, env : env_array)

# https://github.com/mesonbuild/meson/issues/12327
env = environment()
env.append('PATH', 'something')

bash = find_program('bash')

custompathtgt = custom_target('testpathappend',
output : 'nothing.txt',
build_always : true,
command : [bash, '-c', 'env'],
env : env)

0 comments on commit 1570289

Please sign in to comment.