aboutsummaryrefslogtreecommitdiff
path: root/mesontest.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-03-27 14:52:34 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2017-04-06 22:47:15 +0100
commit600f16f9f834f14ff411b477674b6112cbac33d1 (patch)
treed40cff8cb637fb4a74d3149ed14499123ef7fbc8 /mesontest.py
parentcbc5064a67b2e7ff1a69d40f65c84e3d55fe2a66 (diff)
downloadmeson-600f16f9f834f14ff411b477674b6112cbac33d1.zip
meson-600f16f9f834f14ff411b477674b6112cbac33d1.tar.gz
meson-600f16f9f834f14ff411b477674b6112cbac33d1.tar.bz2
Use extra_paths on Cygwin
Cygwin executables are still loaded by the Windows PE loader, so PATH needs to include any extra directories where required DLLs can be found. Cygwin uses a unix style ':'-separated PATH. os.pathsep is used correctly on extra_paths in meson_exe.py, but not in mesontest.py
Diffstat (limited to 'mesontest.py')
-rwxr-xr-xmesontest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesontest.py b/mesontest.py
index a1708e3..d626ba7 100755
--- a/mesontest.py
+++ b/mesontest.py
@@ -202,7 +202,7 @@ class TestHarness:
child_env.update(test.env)
if len(test.extra_paths) > 0:
- child_env['PATH'] += ';'.join([''] + test.extra_paths)
+ child_env['PATH'] += os.pathsep.join([''] + test.extra_paths)
# If MALLOC_PERTURB_ is not set, or if it is set to an empty value,
# (i.e., the test or the environment don't explicitly set it), set