Chk_gen_eh_frame: exit with 1 upon failure

This commit is contained in:
Théophile Bastian 2019-07-07 11:50:50 +02:00
parent 4811d68213
commit faef68303e
2 changed files with 4 additions and 1 deletions

View file

@ -386,7 +386,9 @@ def main():
# If we had some errors to report, let's report positive data too
reports.append("{} matched".format(len(matched)))
print("{}: {}".format(test_name, "; ".join(reports)))
return 1
return 0
if __name__ == "__main__":
main()
sys.exit(main())

View file

@ -23,3 +23,4 @@ fi
readelf -wF "$orig_path" ; \
echo "===" ; \
readelf -wF "$eh_path") | python $py_checker $*
exit $?