summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2010-09-20 00:33:50 +0200
committerJohan Dahlin <johan@gnome.org>2010-09-27 11:03:50 -0300
commit03b55dac443422add618ec61343fea3c0181c5ca (patch)
tree891c44f9f8a20c0a293a41e5bfb34d94ac516dad
parentea72e772186c16d232d7340712bb7f52ebe8badb (diff)
downloadgobject-introspection-03b55dac443422add618ec61343fea3c0181c5ca.tar.gz
scanner: fail if cpp fails
https://bugzilla.gnome.org/show_bug.cgi?id=630101
-rw-r--r--giscanner/sourcescanner.py5
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)