summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py')
-rw-r--r--lldb/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py33
1 files changed, 4 insertions, 29 deletions
diff --git a/lldb/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py b/lldb/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py
index e74cd82a651..02ac9d79514 100644
--- a/lldb/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py
+++ b/lldb/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py
@@ -14,35 +14,16 @@ class ModulesInlineFunctionsTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @dsym_test
- def test_expr_with_dsym(self):
- self.buildDsym()
- self.expr()
-
- @dwarf_test
- @skipIfFreeBSD
- @skipIfLinux
- @skipIfWindows
- def test_expr_with_dwarf(self):
- self.buildDwarf()
- self.expr()
-
def setUp(self):
# Call super's setUp().
TestBase.setUp(self)
# Find the line number to break inside main().
self.line = line_number('main.m', '// Set breakpoint here.')
- def applies(self):
- if platform.system() != "Darwin":
- return False
- if StrictVersion('12.0.0') > platform.release():
- return False
-
- return True
-
- def common_setup(self):
+ @skipUnlessDarwin
+ @unittest2.skipIf(platform.system() != "Darwin" or StrictVersion('12.0.0') > platform.release(), "Only supported on Darwin 12.0.0+")
+ def test_expr(self):
+ self.build()
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
@@ -60,12 +41,6 @@ class ModulesInlineFunctionsTestCase(TestBase):
self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
substrs = [' resolved, hit count = 1'])
- def expr(self):
- if not self.applies():
- return
-
- self.common_setup()
-
self.runCmd("settings set target.clang-module-search-paths \"" + os.getcwd() + "\"")
self.expect("expr @import myModule; 3", VARIABLES_DISPLAYED_CORRECTLY,
OpenPOWER on IntegriCloud