[gobject-introspection] scanner: fail if cpp fails
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: fail if cpp fails
- Date: Mon, 27 Sep 2010 14:07:19 +0000 (UTC)
commit 03b55dac443422add618ec61343fea3c0181c5ca
Author: Vincent Untz <vuntz gnome org>
Date: Mon Sep 20 00:33:50 2010 +0200
scanner: fail if cpp fails
https://bugzilla.gnome.org/show_bug.cgi?id=630101
giscanner/sourcescanner.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index e449f50..20339e4 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]