Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
055b6b17
Commit
055b6b17
authored
Nov 17, 2014
by
kosak
Browse files
Prevent gmock_gen from returning exit code zero on a failure to parse.
parent
f58b49a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
scripts/generator/cpp/gmock_class.py
scripts/generator/cpp/gmock_class.py
+1
-1
No files found.
scripts/generator/cpp/gmock_class.py
View file @
055b6b17
...
...
@@ -217,7 +217,7 @@ def main(argv=sys.argv):
return
except
:
# An error message was already printed since we couldn't parse.
pass
sys
.
exit
(
1
)
else
:
lines
=
_GenerateMocks
(
filename
,
source
,
entire_ast
,
desired_class_names
)
sys
.
stdout
.
write
(
'
\n
'
.
join
(
lines
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment