diff options
author | Michael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com> | 2019-11-18 15:21:37 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-18 22:21:36 +0200 |
commit | 83b4e981c4dd8b8ea521a6150a34636d10a67211 (patch) | |
tree | 3ac84e307e6a2589073a7542a0d7127738f09576 /run_unittests.py | |
parent | 0435691e83fb7172e2a9635d2eb32d5521089916 (diff) | |
download | meson-83b4e981c4dd8b8ea521a6150a34636d10a67211.zip meson-83b4e981c4dd8b8ea521a6150a34636d10a67211.tar.gz meson-83b4e981c4dd8b8ea521a6150a34636d10a67211.tar.bz2 |
Use strict function prototypes
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py index 2aa4470..4e56c1d 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -3047,7 +3047,7 @@ int main(int argc, char **argv) { if lang in ('c', 'cpp'): with tempfile.TemporaryDirectory() as tmpdir: with open(os.path.join(tmpdir, 'foo.' + lang), 'w') as f: - f.write('int main() {}') + f.write('int main(void) {}') self._run(self.meson_command + ['init', '-b'], workdir=tmpdir) # The test uses mocking and thus requires that @@ -7006,4 +7006,4 @@ def main(): return unittest.main(defaultTest=cases, buffer=True) if __name__ == '__main__': - sys.exit(main()) + raise SystemExit(main()) |