From a8fee7f981eace630fce1d29ea8aacac8a4687e3 Mon Sep 17 00:00:00 2001 From: Todd Fiala Date: Fri, 11 Dec 2015 19:44:23 +0000 Subject: Add expected timeout support to test event architecture. llvm-svn: 255363 --- .../issue_verification/TestExpectedTimeout.py.park | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/issue_verification/TestExpectedTimeout.py.park (limited to 'lldb/packages/Python/lldbsuite/test/issue_verification') 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") -- cgit v1.2.3