summaryrefslogtreecommitdiff
path: root/unittests/windowstests.py
diff options
context:
space:
mode:
authorXavier Claessens <xclaessens@netflix.com>2025-09-05 16:06:36 -0400
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-09-06 15:06:40 +0300
commit4b7a23c047ef5139f84cf96da37d132fe5fd84bc (patch)
tree9f9926eceee899fdc76244f04011be1b02cacdaf /unittests/windowstests.py
parent94300ce8a7e85116c0f2f53a4b57a5bf6ac7e47a (diff)
downloadmeson-4b7a23c047ef5139f84cf96da37d132fe5fd84bc.tar.gz
vsenv: Ignore errors when parsing multiline env values
Diffstat (limited to 'unittests/windowstests.py')
-rw-r--r--unittests/windowstests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/unittests/windowstests.py b/unittests/windowstests.py
index 7fa4ab286..2cb1407c1 100644
--- a/unittests/windowstests.py
+++ b/unittests/windowstests.py
@@ -466,6 +466,12 @@ class WindowsTests(BasePlatformTests):
# Studio is picked, as a regression test for
# https://github.com/mesonbuild/meson/issues/9774
env['PATH'] = get_path_without_cmd('ninja', env['PATH'])
+ # Add a multiline variable to test that it is handled correctly
+ # with a line that contains only '=' and a line that would result
+ # in an invalid variable name.
+ # see: https://github.com/mesonbuild/meson/pull/13682
+ env['MULTILINE_VAR_WITH_EQUALS'] = 'Foo\r\n=====\r\n'
+ env['MULTILINE_VAR_WITH_INVALID_NAME'] = 'Foo\n%=Bar\n'
testdir = os.path.join(self.common_test_dir, '1 trivial')
out = self.init(testdir, extra_args=['--vsenv'], override_envvars=env)
self.assertIn('Activating VS', out)