Bug 469523 - Enable TUnit leak log in tinderbox (log); (Ev1) Support xpcshell built without leak logging; (Thunderbird bustage fix)

This commit is contained in:
Serge Gautherie 2009-03-28 03:00:14 +01:00
Родитель 00b0be93ae
Коммит c6ae4ba1ac
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -194,7 +194,9 @@ def runTests(xpcshell, testdirs=[], xrePath=None, testFile=None,
print "TEST-PASS | %s | all tests passed" % test
processLeakLog(leakLogFile)
# Remove the leak detection file (here) so it can't "leak" to the next test.
os.remove(leakLogFile)
# The file is not there if leak logging was not enabled in the xpcshell build.
if os.path.exists(leakLogFile):
os.remove(leakLogFile)
if not (success or keepGoing):
return False