Converted TestFunctionTypes.py to Dsym/Dwarf combination.

llvm-svn: 113029
This commit is contained in:
Johnny Chen 2010-09-03 23:14:26 +00:00
parent 84c96b84bd
commit 1cdadddf36
1 changed files with 12 additions and 1 deletions

View File

@ -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)