Skip to content

Commit c64c256

Browse files
author
bors-servo
authored
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
2 parents ddb680b + 4b049fc commit c64c256

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

csmith-fuzzing/predicate.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ def main():
144144
exit_code = 2
145145
print("Unexpected exception:", e)
146146

147-
for p in TEMP_FILES:
147+
for path in TEMP_FILES:
148148
try:
149149
os.remove(path)
150-
except:
151-
pass
150+
except Exception as e:
151+
print("Unexpected exception:", e)
152152

153153
sys.exit(exit_code)
154154

0 commit comments

Comments
 (0)