Index: test/lldbtest.py =================================================================== --- test/lldbtest.py +++ test/lldbtest.py @@ -1791,7 +1791,12 @@ else: # success! (and we don't want log files) delete log files for log_file in log_files_for_this_test: - os.unlink(log_file) + try: + os.unlink(log_file) + except: + # This can be racey on Windows, so sleep and try again. + time.sleep(0.5) + os.unlink(log_file) # ==================================================== # Config. methods supported through a plugin interface