aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Werner <nils.werner@recalm.com>2024-06-05 10:49:25 +0200
committerEli Schwartz <eschwartz93@gmail.com>2024-06-23 23:02:43 -0400
commit1570289acf28272aa6f1e029a32229ad6f276d94 (patch)
tree829c614f751d68dd2db95c7497c43f0ebb349556
parent2a9f40ff7a795dd0c36f8acd61757e32e3c41f48 (diff)
downloadmeson-1570289acf28272aa6f1e029a32229ad6f276d94.zip
meson-1570289acf28272aa6f1e029a32229ad6f276d94.tar.gz
meson-1570289acf28272aa6f1e029a32229ad6f276d94.tar.bz2
Test case for environment prepend/append acting like set
-rw-r--r--test cases/common/41 test args/meson.build12
1 files changed, 12 insertions, 0 deletions
diff --git a/test cases/common/41 test args/meson.build b/test cases/common/41 test args/meson.build
index b21f1ad..4894f3e 100644
--- a/test cases/common/41 test args/meson.build
+++ b/test cases/common/41 test args/meson.build
@@ -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)