diff options
author | makise-homura <akemi_homura@kurisa.ch> | 2021-09-29 21:38:38 +0300 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-09-29 20:16:02 -0700 |
commit | 613c9e26c420a7937bc2d17de5d98c6fee5c665a (patch) | |
tree | 2f1b6c6546c428b61e474e31debd76f788e2ca22 /unittests | |
parent | 0021a219302101db01daca29017b1125a71f087f (diff) | |
download | meson-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.py | 3 |
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) |