mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
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:
@@ -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"""
|
||||
|
||||
@@ -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"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user