forked from OSchip/llvm-project
Make sure to cleanup the "dwarf-lookups.txt" log file.
llvm-svn: 198984
This commit is contained in:
parent
6fa28ffd5a
commit
fd6e4b91b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue