diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/issue_verification')
| -rw-r--r-- | packages/Python/lldbsuite/test/issue_verification/TestInvalidDecorator.py.park | 13 | ||||
| -rw-r--r-- | packages/Python/lldbsuite/test/issue_verification/TestRerunTimeout.py.park | 8 | 
2 files changed, 18 insertions, 3 deletions
| diff --git a/packages/Python/lldbsuite/test/issue_verification/TestInvalidDecorator.py.park b/packages/Python/lldbsuite/test/issue_verification/TestInvalidDecorator.py.park new file mode 100644 index 000000000000..7f5c4cb79cf5 --- /dev/null +++ b/packages/Python/lldbsuite/test/issue_verification/TestInvalidDecorator.py.park @@ -0,0 +1,13 @@ +from __future__ import print_function +from lldbsuite.test import lldbtest +from lldbsuite.test import decorators + + +class NonExistentDecoratorTestCase(lldbtest.TestBase): + +    mydir = lldbtest.TestBase.compute_mydir(__file__) + +    @decorators.nonExistentDecorator(bugnumber="yt/1300") +    def test(self): +        """Verify non-existent decorators are picked up by test runner.""" +        pass diff --git a/packages/Python/lldbsuite/test/issue_verification/TestRerunTimeout.py.park b/packages/Python/lldbsuite/test/issue_verification/TestRerunTimeout.py.park index 1cf5373ac491..a8f5542ae2f5 100644 --- a/packages/Python/lldbsuite/test/issue_verification/TestRerunTimeout.py.park +++ b/packages/Python/lldbsuite/test/issue_verification/TestRerunTimeout.py.park @@ -3,19 +3,21 @@ from __future__ import print_function  import time -import lldbsuite.test.lldbtest as lldbtest +import lldbsuite.test.decorators as decorators  import rerun_base  class RerunTimeoutTestCase(rerun_base.RerunBaseTestCase): -    @lldbtest.no_debug_info_test +    @decorators.no_debug_info_test      def test_timeout_rerun_succeeds(self): -        """Tests that timeout logic kicks in and is picked up.""" +        """Tests that the timeout logic kicks in and that this timeout is picked up."""          if not self.should_generate_issue():              # We pass this time.              return +          # We time out this time.          while True: +            # noinspection PyBroadException              try:                  time.sleep(1)              except: | 
