]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/issue_verification/TestFail.py.park
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / issue_verification / TestFail.py.park
1 """Tests that a FAIL is detected by the testbot."""
2
3 from __future__ import print_function
4
5 import lldbsuite.test.lldbtest as lldbtest
6
7
8 class FailTestCase(lldbtest.TestBase):
9     """Forces test failure."""
10     mydir = lldbtest.TestBase.compute_mydir(__file__)
11
12     def test_buildbot_catches_failure(self):
13         """Issues a failing test assertion."""
14         self.assertTrue(
15             False,
16             "This will always fail, buildbot should flag this.")