diff options
author | Vincent Untz <vuntz@gnome.org> | 2010-09-20 00:33:50 +0200 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-09-27 11:03:50 -0300 |
commit | 03b55dac443422add618ec61343fea3c0181c5ca (patch) | |
tree | 891c44f9f8a20c0a293a41e5bfb34d94ac516dad /giscanner/sourcescanner.py | |
parent | ea72e772186c16d232d7340712bb7f52ebe8badb (diff) | |
download | gobject-introspection-03b55dac443422add618ec61343fea3c0181c5ca.tar.gz |
scanner: fail if cpp fails
https://bugzilla.gnome.org/show_bug.cgi?id=630101
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r-- | giscanner/sourcescanner.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py index e449f504..20339e47 100644 --- a/giscanner/sourcescanner.py +++ b/giscanner/sourcescanner.py @@ -298,7 +298,12 @@ class SourceScanner(object): if len(data) < 4096: break fp.seek(0, 0) + assert proc, 'Proc was none' + proc.wait() + if proc.returncode != 0: + raise SystemExit('Error while processing the source.') + self._scanner.parse_file(fp.fileno()) fp.close() os.unlink(tmp) |