diff options
author | Pavel Labath <labath@google.com> | 2015-10-26 09:28:32 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2015-10-26 09:28:32 +0000 |
commit | dc8b2d3d3aa4cedd66ee5b113ee8cc535f2c5a04 (patch) | |
tree | 365be13e36b28ecc015ac24911b0b78e84723232 /lldb/test/python_api/frame/TestFrames.py | |
parent | 4cfc9198616f535f3d3a0b6b3e9e5f8a2e76988f (diff) | |
download | bcm5719-llvm-dc8b2d3d3aa4cedd66ee5b113ee8cc535f2c5a04.tar.gz bcm5719-llvm-dc8b2d3d3aa4cedd66ee5b113ee8cc535f2c5a04.zip |
Port the python api decorator to use test categories
Summary:
Per discussions on the mailing list, I have implemented a decorator which annotates individual
test methods with categories. I have used this framework to replace the '-a' and '+a'
command-line switches (now '-G pyapi' and '--skip-category pyapi') and the @python_api_test
decorator (now @add_test_categories('pyapi')). The test suite now gives an error message
suggesting the new options if the user specifies the deprecated +/-a switches. If the general
direction is good, I will follow this up with other switches.
Reviewers: tberghammer, tfiala, granata.enrico, zturner
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D14020
llvm-svn: 251277
Diffstat (limited to 'lldb/test/python_api/frame/TestFrames.py')
-rw-r--r-- | lldb/test/python_api/frame/TestFrames.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/python_api/frame/TestFrames.py b/lldb/test/python_api/frame/TestFrames.py index d8cccc6fea0..98f5062e28c 100644 --- a/lldb/test/python_api/frame/TestFrames.py +++ b/lldb/test/python_api/frame/TestFrames.py @@ -16,7 +16,7 @@ class FrameAPITestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @python_api_test + @add_test_categories(['pyapi']) @expectedFailureWindows("llvm.org/pr24778") def test_get_arg_vals_for_call_stack(self): """Exercise SBFrame.GetVariables() API to get argument vals.""" @@ -106,7 +106,7 @@ class FrameAPITestCase(TestBase): substrs = ["a((int)val=1, (char)ch='A')", "a((int)val=3, (char)ch='A')"]) - @python_api_test + @add_test_categories(['pyapi']) def test_frame_api_boundary_condition(self): """Exercise SBFrame APIs with boundary condition inputs.""" self.build() @@ -145,7 +145,7 @@ class FrameAPITestCase(TestBase): frame.EvaluateExpression(None) - @python_api_test + @add_test_categories(['pyapi']) def test_frame_api_IsEqual(self): """Exercise SBFrame API IsEqual.""" self.build() |