aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-06-12 22:39:33 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-06-12 22:39:33 +0530
commit1865425b4bbf87f9198353dd730de748680d3979 (patch)
tree145d21de5ae3e4179d376e6bac9196ba0a56e25a /run_unittests.py
parent8244f4c6a6436a7ddf585592c184714f803cfef8 (diff)
downloadmeson-1865425b4bbf87f9198353dd730de748680d3979.zip
meson-1865425b4bbf87f9198353dd730de748680d3979.tar.gz
meson-1865425b4bbf87f9198353dd730de748680d3979.tar.bz2
tests/unit/8: Rename to 9 and add -l flags
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py
index ab41f54..a405b01 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -1756,10 +1756,13 @@ class LinuxlikeTests(BasePlatformTests):
self.assertEqual(subprocess.call(installed_exe, env=env), 0)
def test_order_of_l_arguments(self):
- testdir = os.path.join(self.unit_test_dir, '8 L order')
+ testdir = os.path.join(self.unit_test_dir, '9 -L -l order')
os.environ['PKG_CONFIG_PATH'] = testdir
self.init(testdir)
- expected_order = ['-L/me/first', '-L/me/second', '-L/me/third', '-L/me/fourth']
+ # NOTE: .pc file has -Lfoo -lfoo -Lbar -lbar but pkg-config reorders
+ # the flags before returning them to -Lfoo -Lbar -lfoo -lbar
+ expected_order = ['-L/me/first', '-L/me/second','-lfoo1', '-lfoo2',
+ '-L/me/third', '-L/me/fourth', '-lfoo3', '-lfoo4']
with open(os.path.join(self.builddir, 'build.ninja')) as ifile:
for line in ifile:
if expected_order[0] in line: