diff options
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index c2299ca..f45f65e 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1775,6 +1775,9 @@ int main(int argc, char **argv) { workdir=tmpdir) self._run(ninja, workdir=os.path.join(tmpdir, 'builddir')) + with tempfile.TemporaryDirectory() as tmpdir: + open(os.path.join(tmpdir, 'foo.' + lang), 'w').write('int main() {}') + self._run(meson_command + ['init', '-b'], workdir=tmpdir) # The test uses mocking and thus requires that # the current process is the one to run the Meson steps. |