diff options
-rw-r--r-- | mesonbuild/msetup.py | 1 | ||||
-rwxr-xr-x | run_unittests.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/msetup.py b/mesonbuild/msetup.py index 5c7bb17..b348948 100644 --- a/mesonbuild/msetup.py +++ b/mesonbuild/msetup.py @@ -101,6 +101,7 @@ class MesonApp: else: mesonlib.windows_proof_rm(l) finally: + self.add_vcs_ignore_files(self.build_dir) for b, f in restore: os.makedirs(os.path.dirname(f), exist_ok=True) shutil.move(b, f) diff --git a/run_unittests.py b/run_unittests.py index e9711db..2a2fb4c 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4337,6 +4337,7 @@ class AllPlatformTests(BasePlatformTests): self.assertRegex(out, 'opt2 val2') self.assertRegex(out, 'opt3 val3') self.assertRegex(out, 'opt4 val4') + self.assertTrue(Path(self.builddir, '.gitignore').exists()) self.build() self.run_tests() |