Skip to content

Commit

Permalink
Auto merge of #1134 - fitzgen:actually-cleanup-temp-files-in-predicat…
Browse files Browse the repository at this point in the history
…e, 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
  • Loading branch information
bors-servo authored Nov 1, 2017
2 parents ddb680b + 4b049fc commit c64c256
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions csmith-fuzzing/predicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c64c256

Please sign in to comment.