aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/run_unittests.py b/run_unittests.py
index d0bdbd4..2241812 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -2738,7 +2738,7 @@ class AllPlatformTests(BasePlatformTests):
self.run_tests()
def test_implicit_forcefallback(self):
- testdir = os.path.join(self.unit_test_dir, '95 implicit force fallback')
+ testdir = os.path.join(self.unit_test_dir, '96 implicit force fallback')
with self.assertRaises(subprocess.CalledProcessError) as cm:
self.init(testdir)
self.init(testdir, extra_args=['--wrap-mode=forcefallback'])
@@ -3998,9 +3998,9 @@ class AllPlatformTests(BasePlatformTests):
for (t, f) in [
('10 out of bounds', 'meson.build'),
('18 wrong plusassign', 'meson.build'),
- ('61 bad option argument', 'meson_options.txt'),
- ('102 subdir parse error', os.path.join('subdir', 'meson.build')),
- ('103 invalid option file', 'meson_options.txt'),
+ ('60 bad option argument', 'meson_options.txt'),
+ ('98 subdir parse error', os.path.join('subdir', 'meson.build')),
+ ('99 invalid option file', 'meson_options.txt'),
]:
tdir = os.path.join(self.src_root, 'test cases', 'failing', t)
@@ -6878,6 +6878,18 @@ class LinuxlikeTests(BasePlatformTests):
pcfile = f.read()
self.assertFalse('blub_blob_blib' in pcfile)
+ def test_symlink_builddir(self):
+ '''
+ Test using a symlink as either the builddir for "setup" or
+ the argument for "-C".
+ '''
+ testdir = os.path.join(self.common_test_dir, '1 trivial')
+ os.symlink(self.builddir, self.builddir + '-symlink')
+ self.change_builddir(self.builddir + '-symlink')
+ self.init(testdir)
+ self.build()
+ self._run(self.mtest_command)
+
def test_vala_c_warnings(self):
'''
Test that no warnings are emitted for C code generated by Vala. This