summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/issue_verification
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2015-12-11 19:44:23 +0000
committerTodd Fiala <todd.fiala@gmail.com>2015-12-11 19:44:23 +0000
commita8fee7f981eace630fce1d29ea8aacac8a4687e3 (patch)
treec8ca426b21ecb65423027c81a9a5fac97fea2a60 /lldb/packages/Python/lldbsuite/test/issue_verification
parent60d69e2865b2dfe62f689274b6346919250b5250 (diff)
downloadbcm5719-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.park19
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")
OpenPOWER on IntegriCloud