OSDN Git Service

lit: Fix a subtle resource usage bug when executing tests using the internal
authorDaniel Dunbar <daniel@zuster.org>
Wed, 29 Sep 2010 15:59:37 +0000 (15:59 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 29 Sep 2010 15:59:37 +0000 (15:59 +0000)
commit69c4cbe9e878e49aa87d322c63afd809588f4cd7
treea1dffe28928af9214f36378cd40f2862aff42448
parent38e0b4689c2425ce3f1fdac15189f2c1234bc1cc
lit: Fix a subtle resource usage bug when executing tests using the internal
shell runner.

We would inadvertently end up holding on to handles to the temporary files
longer than we should have been. On Win32, where open handles lock some file
operations, this caused problems in tests which would try to move temporary
files around (as Clang does by default now).

Many thanks to Francois Pichet for the excellent detective work on this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115040 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/TestRunner.py