Fix a test that should only be run with a dSYM file by adding @skipIfDwarf and using a new @skipIfDWO.

llvm-svn: 249601
This commit is contained in:
Greg Clayton 2015-10-07 20:01:13 +00:00
parent 37191a2c2d
commit edea2371f3
2 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,8 @@ class TestObjCIvarStripped(TestBase):
self.stop_line = line_number(self.main_source, '// Set breakpoint here.')
@skipUnlessDarwin
@skipIfDwarf # This test requires a stripped binary and a dSYM
@skipIfDWO # This test requires a stripped binary and a dSYM
@python_api_test
def test_with_python_api(self):
"""Test that we can find stripped Objective-C ivars in the runtime"""

View File

@ -1099,6 +1099,9 @@ def skipIf(bugnumber=None, oslist=None, compiler=None, compiler_version=None, ar
def skipIfDebugInfo(bugnumber=None, debug_info=None):
return skipIf(bugnumber=bugnumber, debug_info=debug_info)
def skipIfDWO(bugnumber=None):
return skipIfDebugInfo(bugnumber, ["dwo"])
def skipIfDwarf(bugnumber=None):
return skipIfDebugInfo(bugnumber, ["dwarf"])