diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2015-12-11 19:44:23 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2015-12-11 19:44:23 +0000 |
commit | a8fee7f981eace630fce1d29ea8aacac8a4687e3 (patch) | |
tree | c8ca426b21ecb65423027c81a9a5fac97fea2a60 /lldb/packages/Python/lldbsuite/test/issue_verification | |
parent | 60d69e2865b2dfe62f689274b6346919250b5250 (diff) | |
download | bcm5719-llvm-a8fee7f981eace630fce1d29ea8aacac8a4687e3.tar.gz bcm5719-llvm-a8fee7f981eace630fce1d29ea8aacac8a4687e3.zip |
Add expected timeout support to test event architecture.
llvm-svn: 255363
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/issue_verification')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/issue_verification/TestExpectedTimeout.py.park | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/TestExpectedTimeout.py.park b/lldb/packages/Python/lldbsuite/test/issue_verification/TestExpectedTimeout.py.park new file mode 100644 index 00000000000..2453581231f --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/issue_verification/TestExpectedTimeout.py.park @@ -0,0 +1,19 @@ +"""Tests that a timeout is detected by the testbot.""" +from __future__ import print_function + +import time + +import lldbsuite.test.lldbtest as lldbtest + + +class ExpectedTimeoutTestCase(lldbtest.TestBase): + """Forces test timeout.""" + mydir = lldbtest.TestBase.compute_mydir(__file__) + + def test_buildbot_sees_expected_timeout(self): + """Tests that expected timeout logic kicks in and is picked up.""" + while True: + try: + time.sleep(1) + except: + print("ignoring exception during sleep") |