Make sure to cleanup the "dwarf-lookups.txt" log file.

llvm-svn: 198984
This commit is contained in:
Greg Clayton 2014-01-11 00:54:56 +00:00
parent 6fa28ffd5a
commit fd6e4b91b7
1 changed files with 7 additions and 1 deletions

View File

@ -137,10 +137,16 @@ class FoundationTestCase(TestBase):
self.runCmd("run", RUN_SUCCEEDED)
# Log any DWARF lookups
logfile = "dwarf-lookups.txt"
logfile = os.path.join(os.getcwd(), "dwarf-lookups.txt")
self.runCmd("log enable -f %s dwarf lookups" % (logfile))
self.runCmd("expr self")
self.runCmd("log disable dwarf lookups")
def cleanup():
sys.unlink (logfile)
self.addTearDownHook(cleanup)
f = open(logfile)
lines = f.readlines()
num_errors = 0