Index: utils/lit/lit/TestFormats.py =================================================================== --- utils/lit/lit/TestFormats.py (revision 126559) +++ utils/lit/lit/TestFormats.py (working copy) @@ -193,9 +193,14 @@ # If using temp input, create a temporary file and hand it to the # subclass. if self.useTempInput: - tmp = tempfile.NamedTemporaryFile(suffix='.cpp') + if kIsWindows: + tmp = tempfile.NamedTemporaryFile(suffix='.cpp', delete = False) + else: + tmp = tempfile.NamedTemporaryFile(suffix='.cpp') self.createTempInput(tmp, test) tmp.flush() + if kIsWindows: + tmp.close(); cmd.append(tmp.name) elif hasattr(test, 'source_path'): cmd.append(test.source_path)