Marked TestObjCMethods failing tests XFAIL, fixed cleanup code, removed now-passing expected failure markers.

All tests matching '-p TestObjCMethods' now are marked correctly for MacOSX, and some
error classes have been removed in cleanup code looking for files that
might not exist due to previous failure.

See http://llvm.org/bugs/show_bug.cgi?id=20267

llvm-svn: 212650
This commit is contained in:
Todd Fiala 2014-07-09 21:02:52 +00:00
parent 029bd3350e
commit 532d8a709b
2 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@ Set breakpoints on objective-c class and instance methods in foundation.
Also lookup objective-c data types and evaluate expressions.
"""
import os, time
import os, os.path, time
import unittest2
import lldb
import string
@ -119,6 +119,7 @@ class FoundationTestCase(TestBase):
self.expression_lookups_objc()
@dwarf_test
@expectedFailureDarwin("llvm.org/pr20267")
def test_expression_lookups_objc_dwarf(self):
"""Test running an expression detect spurious debug info lookups (DWARF)."""
self.buildDwarf()
@ -141,7 +142,8 @@ class FoundationTestCase(TestBase):
self.runCmd("log disable dwarf lookups")
def cleanup():
os.unlink (logfile)
if os.path.exists (logfile):
os.unlink (logfile)
self.addTearDownHook(cleanup)

View File

@ -133,7 +133,6 @@ class FoundationTestCase2(TestBase):
self.runCmd("process continue")
@unittest2.expectedFailure(8741897)
def NSArray_expr(self):
"""Test expression commands for NSArray."""
exe = os.path.join(os.getcwd(), "a.out")