aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-09-03 23:14:26 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-09-03 23:14:26 +0000
commit1cdadddf3620b48488c0c6401339f2f8d23f1da2 (patch)
tree53f2dd6f7c935486092a3c3eca9957212805f753
parent84c96b84bdf5b9bd0eb023b13d091a9b333d0ea8 (diff)
downloadllvm-1cdadddf3620b48488c0c6401339f2f8d23f1da2.zip
llvm-1cdadddf3620b48488c0c6401339f2f8d23f1da2.tar.gz
llvm-1cdadddf3620b48488c0c6401339f2f8d23f1da2.tar.bz2
Converted TestFunctionTypes.py to Dsym/Dwarf combination.
llvm-svn: 113029
-rw-r--r--lldb/test/function_types/TestFunctionTypes.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/lldb/test/function_types/TestFunctionTypes.py b/lldb/test/function_types/TestFunctionTypes.py
index 90eb2bf..24d133d 100644
--- a/lldb/test/function_types/TestFunctionTypes.py
+++ b/lldb/test/function_types/TestFunctionTypes.py
@@ -9,7 +9,18 @@ class FunctionTypesTestCase(TestBase):
mydir = "function_types"
- def test_function_types(self):
+ @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ def test_with_dsym(self):
+ """Test 'callback' has function ptr type, then break on the function."""
+ self.buildDsym()
+ self.function_types()
+
+ def test_with_dwarf(self):
+ """Test 'callback' has function ptr type, then break on the function."""
+ self.buildDwarf()
+ self.function_types()
+
+ def function_types(self):
"""Test 'callback' has function ptr type, then break on the function."""
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)