From 1570289acf28272aa6f1e029a32229ad6f276d94 Mon Sep 17 00:00:00 2001 From: Nils Werner Date: Wed, 5 Jun 2024 10:49:25 +0200 Subject: [PATCH] Test case for environment prepend/append acting like set --- test cases/common/41 test args/meson.build | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test cases/common/41 test args/meson.build b/test cases/common/41 test args/meson.build index b21f1ad00b12..4894f3e163a8 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)