From d882998eff0f1ac4ae38a457c7217dd0492c1936 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Mon, 25 Feb 2013 23:51:06 +0000 Subject: [PATCH] Fix the .categories, it had "dataformatter" not "dataformatters". Remove the getCategory from TestDataFormatterObjC.py, since it was superceded by the .categories file, and didn't work anyway (getCategories currently has to be a method on the test class, not on the test.) Add a "basic_process" category, and start to find some tests for simple process running sniff tests. llvm-svn: 176061 --- lldb/test/dotest.py | 3 ++- .../functionalities/data-formatter/data-formatter-objc/.categories | 2 +- .../data-formatter/data-formatter-objc/TestDataFormatterObjC.py | 4 ---- lldb/test/lang/c/stepping/TestStepAndBreakpoints.py | 3 +++ 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index e5e2fdf..4e1ce6d 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -79,7 +79,8 @@ validCategories = { 'dataformatters':'Tests related to the type command and the data formatters subsystem', 'expression':'Tests related to the expression parser', 'objc':'Tests related to the Objective-C programming language support', -'pyapi':'Tests related to the Python API' +'pyapi':'Tests related to the Python API', +'basic_process': 'Basic process execution sniff tests.' } # The test suite. diff --git a/lldb/test/functionalities/data-formatter/data-formatter-objc/.categories b/lldb/test/functionalities/data-formatter/data-formatter-objc/.categories index 77b5ffc..6326dbc 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-objc/.categories +++ b/lldb/test/functionalities/data-formatter/data-formatter-objc/.categories @@ -1 +1 @@ -dataformatter,objc +dataformatters,objc diff --git a/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py b/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py index 6f55043..3e30f2a 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py +++ b/lldb/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjC.py @@ -90,8 +90,6 @@ class ObjCDataFormatterTestCase(TestBase): """Test common cases of expression parser <--> formatters interaction.""" self.buildDsym() self.expr_objc_data_formatter_commands() - def getCategories(self): - return ['dataformatters','expression','objc'] @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") @dwarf_test @@ -99,8 +97,6 @@ class ObjCDataFormatterTestCase(TestBase): """Test common cases of expression parser <--> formatters interaction.""" self.buildDwarf() self.expr_objc_data_formatter_commands() - def getCategories(self): - return ['dataformatters','expression','objc'] def setUp(self): # Call super's setUp(). diff --git a/lldb/test/lang/c/stepping/TestStepAndBreakpoints.py b/lldb/test/lang/c/stepping/TestStepAndBreakpoints.py index 67472db..19aaef5 100644 --- a/lldb/test/lang/c/stepping/TestStepAndBreakpoints.py +++ b/lldb/test/lang/c/stepping/TestStepAndBreakpoints.py @@ -10,6 +10,9 @@ class TestObjCStepping(TestBase): mydir = os.path.join("lang", "c", "stepping") + def getCategories(self): + return ['basic_process'] + @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") @python_api_test @dsym_test -- 2.7.4