From 29508491e5aa05dd1fb9a0ac2ad7d7366b84012a Mon Sep 17 00:00:00 2001 From: Todd Fiala Date: Wed, 9 Dec 2015 18:24:47 +0000 Subject: Disable the issue verification tests. llvm-svn: 255134 --- .../lldbsuite/test/issue_verification/TestFail.py | 16 ------------- .../test/issue_verification/TestFail.py.park | 16 +++++++++++++ .../test/issue_verification/TestSignal.py | 26 ---------------------- .../test/issue_verification/TestSignal.py.park | 26 ++++++++++++++++++++++ .../test/issue_verification/TestTimeout.py | 19 ---------------- .../test/issue_verification/TestTimeout.py.park | 19 ++++++++++++++++ 6 files changed, 61 insertions(+), 61 deletions(-) delete mode 100644 lldb/packages/Python/lldbsuite/test/issue_verification/TestFail.py create mode 100644 lldb/packages/Python/lldbsuite/test/issue_verification/TestFail.py.park delete mode 100644 lldb/packages/Python/lldbsuite/test/issue_verification/TestSignal.py create mode 100644 lldb/packages/Python/lldbsuite/test/issue_verification/TestSignal.py.park delete mode 100644 lldb/packages/Python/lldbsuite/test/issue_verification/TestTimeout.py create mode 100644 lldb/packages/Python/lldbsuite/test/issue_verification/TestTimeout.py.park (limited to 'lldb/packages/Python/lldbsuite/test') diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/TestFail.py b/lldb/packages/Python/lldbsuite/test/issue_verification/TestFail.py deleted file mode 100644 index da64bc0ea8c..00000000000 --- a/lldb/packages/Python/lldbsuite/test/issue_verification/TestFail.py +++ /dev/null @@ -1,16 +0,0 @@ -"""Tests that a FAIL is detected by the testbot.""" - -from __future__ import print_function - -import lldbsuite.test.lldbtest as lldbtest - - -class FailTestCase(lldbtest.TestBase): - """Forces test failure.""" - mydir = lldbtest.TestBase.compute_mydir(__file__) - - def test_buildbot_catches_failure(self): - """Issues a failing test assertion.""" - self.assertTrue( - False, - "This will always fail, buildbot should flag this.") diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/TestFail.py.park b/lldb/packages/Python/lldbsuite/test/issue_verification/TestFail.py.park new file mode 100644 index 00000000000..da64bc0ea8c --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/issue_verification/TestFail.py.park @@ -0,0 +1,16 @@ +"""Tests that a FAIL is detected by the testbot.""" + +from __future__ import print_function + +import lldbsuite.test.lldbtest as lldbtest + + +class FailTestCase(lldbtest.TestBase): + """Forces test failure.""" + mydir = lldbtest.TestBase.compute_mydir(__file__) + + def test_buildbot_catches_failure(self): + """Issues a failing test assertion.""" + self.assertTrue( + False, + "This will always fail, buildbot should flag this.") diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/TestSignal.py b/lldb/packages/Python/lldbsuite/test/issue_verification/TestSignal.py deleted file mode 100644 index d73ac74b47b..00000000000 --- a/lldb/packages/Python/lldbsuite/test/issue_verification/TestSignal.py +++ /dev/null @@ -1,26 +0,0 @@ -"""Tests that an exceptional exit is detected by the testbot.""" - -from __future__ import print_function - -import os -import signal -import time - -import lldbsuite.test.lldbtest as lldbtest - - -class ExceptionalExitTestCase(lldbtest.TestBase): - """Forces exceptional exit.""" - mydir = lldbtest.TestBase.compute_mydir(__file__) - - @lldbtest.skipIfWindows - def test_buildbot_catches_exceptional_exit(self): - """Force process to die with exceptional exit.""" - - # Sleep for a couple seconds - try: - time.sleep(5) - except: - pass - - os.kill(os.getpid(), signal.SIGKILL) diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/TestSignal.py.park b/lldb/packages/Python/lldbsuite/test/issue_verification/TestSignal.py.park new file mode 100644 index 00000000000..d73ac74b47b --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/issue_verification/TestSignal.py.park @@ -0,0 +1,26 @@ +"""Tests that an exceptional exit is detected by the testbot.""" + +from __future__ import print_function + +import os +import signal +import time + +import lldbsuite.test.lldbtest as lldbtest + + +class ExceptionalExitTestCase(lldbtest.TestBase): + """Forces exceptional exit.""" + mydir = lldbtest.TestBase.compute_mydir(__file__) + + @lldbtest.skipIfWindows + def test_buildbot_catches_exceptional_exit(self): + """Force process to die with exceptional exit.""" + + # Sleep for a couple seconds + try: + time.sleep(5) + except: + pass + + os.kill(os.getpid(), signal.SIGKILL) diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/TestTimeout.py b/lldb/packages/Python/lldbsuite/test/issue_verification/TestTimeout.py deleted file mode 100644 index ba7be454f9a..00000000000 --- a/lldb/packages/Python/lldbsuite/test/issue_verification/TestTimeout.py +++ /dev/null @@ -1,19 +0,0 @@ -"""Tests that a timeout is detected by the testbot.""" -from __future__ import print_function - -import time - -import lldbsuite.test.lldbtest as lldbtest - - -class TimeoutTestCase(lldbtest.TestBase): - """Forces test timeout.""" - mydir = lldbtest.TestBase.compute_mydir(__file__) - - def test_buildbot_catches_timeout(self): - """Tests that timeout logic kicks in and is picked up.""" - while True: - try: - time.sleep(1) - except: - print("ignoring exception during sleep") diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/TestTimeout.py.park b/lldb/packages/Python/lldbsuite/test/issue_verification/TestTimeout.py.park new file mode 100644 index 00000000000..ba7be454f9a --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/issue_verification/TestTimeout.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 TimeoutTestCase(lldbtest.TestBase): + """Forces test timeout.""" + mydir = lldbtest.TestBase.compute_mydir(__file__) + + def test_buildbot_catches_timeout(self): + """Tests that timeout logic kicks in and is picked up.""" + while True: + try: + time.sleep(1) + except: + print("ignoring exception during sleep") -- cgit v1.2.3