aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authormakise-homura <akemi_homura@kurisa.ch>2021-09-29 21:38:38 +0300
committerDylan Baker <dylan@pnwbakers.com>2021-09-29 20:16:02 -0700
commit613c9e26c420a7937bc2d17de5d98c6fee5c665a (patch)
tree2f1b6c6546c428b61e474e31debd76f788e2ca22 /unittests
parent0021a219302101db01daca29017b1125a71f087f (diff)
downloadmeson-613c9e26c420a7937bc2d17de5d98c6fee5c665a.zip
meson-613c9e26c420a7937bc2d17de5d98c6fee5c665a.tar.gz
meson-613c9e26c420a7937bc2d17de5d98c6fee5c665a.tar.bz2
pkgconfig: pkg-configs version<0.29.1 escape variables incorrectly
Diffstat (limited to 'unittests')
-rw-r--r--unittests/linuxliketests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/linuxliketests.py b/unittests/linuxliketests.py
index 8631f30..991a0c2 100644
--- a/unittests/linuxliketests.py
+++ b/unittests/linuxliketests.py
@@ -157,7 +157,8 @@ class LinuxlikeTests(BasePlatformTests):
self.assertEqual(libhello_nolib.get_compile_args(), [])
self.assertEqual(libhello_nolib.get_pkgconfig_variable('foo', {}), 'bar')
self.assertEqual(libhello_nolib.get_pkgconfig_variable('prefix', {}), self.prefix)
- self.assertEqual(libhello_nolib.get_pkgconfig_variable('escaped_var', {}), r'hello\ world')
+ if version_compare(libhello_nolib.check_pkgconfig(libhello_nolib.pkgbin),">=0.29.1"):
+ self.assertEqual(libhello_nolib.get_pkgconfig_variable('escaped_var', {}), r'hello\ world')
self.assertEqual(libhello_nolib.get_pkgconfig_variable('unescaped_var', {}), 'hello world')
cc = detect_c_compiler(env, MachineChoice.HOST)