summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-11-01 13:44:40 -0500
committerGitHub <noreply@github.com>2017-11-01 13:44:40 -0500
commitc64c256ad738a377d30307d7b2303e667f4b94d6 (patch)
tree2909c164b3974782753df4dd552743bd5cc6c508
parentddb680b27db6581070b7b4fb03ea1119167a0bd3 (diff)
parent4b049fc80f61fb993ee792f9187829f0310673ac (diff)
Auto merge of #1134 - fitzgen:actually-cleanup-temp-files-in-predicate, r=pepyakin
Actually cleanup temp files in predicate Embarrassingly, we were ignoring and swallowing a dumb reference error that prevented the temp files from ever getting cleaned up. The good news: with ignoring bitfields and packed structs, I got to `driver.py` iteration 27145 without triggering any `bindgen` bugs, and then the disk got full! :-p r? @pepyakin
-rwxr-xr-xcsmith-fuzzing/predicate.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/csmith-fuzzing/predicate.py b/csmith-fuzzing/predicate.py
index 91e4e26d..2f561148 100755
--- a/csmith-fuzzing/predicate.py
+++ b/csmith-fuzzing/predicate.py
@@ -144,11 +144,11 @@ def main():
exit_code = 2
print("Unexpected exception:", e)
- for p in TEMP_FILES:
+ for path in TEMP_FILES:
try:
os.remove(path)
- except:
- pass
+ except Exception as e:
+ print("Unexpected exception:", e)
sys.exit(exit_code)