diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-07-18 15:03:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-18 15:03:54 +0300 |
commit | 0be74c78352bbe996599aed39468dadec45d1109 (patch) | |
tree | de1ac24c6dec3f496cb86b605d8d1af044cb33c1 /run_unittests.py | |
parent | 6614c7352645770d68bc1adb782fef4da323815a (diff) | |
parent | b5146c02effd53a8b71b2d10f95ecd2358f8241d (diff) | |
download | meson-0be74c78352bbe996599aed39468dadec45d1109.zip meson-0be74c78352bbe996599aed39468dadec45d1109.tar.gz meson-0be74c78352bbe996599aed39468dadec45d1109.tar.bz2 |
Merge pull request #8972 from bonzini/C-symlink
resolve symlinks passed to -C
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 29edf6a..200c4ed 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -6896,6 +6896,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 |