From 1cdadddf3620b48488c0c6401339f2f8d23f1da2 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 3 Sep 2010 23:14:26 +0000 Subject: [PATCH] Converted TestFunctionTypes.py to Dsym/Dwarf combination. llvm-svn: 113029 --- lldb/test/function_types/TestFunctionTypes.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lldb/test/function_types/TestFunctionTypes.py b/lldb/test/function_types/TestFunctionTypes.py index 90eb2bf7f191..24d133d1d2fa 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)