mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-09 00:26:05 +00:00

Summary: A lot of tests do this trick but the vast majority of them don't even call `print()`. Most of this patch was generated by a script that just looks at all the files and deletes the line if there is no `print (` or `print(` anywhere else in the file. I checked the remaining tests manually and deleted the import if we never call print (but instead do stuff like `expr print(...)` and similar false-positives). I also corrected the additional empty lines after the import in the files that I manually edited. Reviewers: JDevlieghere, labath, jfb Reviewed By: labath Subscribers: dexonsmith, wuzish, nemanjai, kbarton, christof, arphaman, abidh, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D71452
23 lines
819 B
Plaintext
23 lines
819 B
Plaintext
"""Tests that a flakey fail is rerun, and will pass on the rerun.
|
|
Run this test with --rerun-all-issues specified to test that
|
|
the tests fail on the first run, then pass on the second.
|
|
Do not mark them as flakey as, at this time, flakey tests will
|
|
run twice, thus causing the second run to succeed."""
|
|
|
|
|
|
import rerun_base
|
|
|
|
import lldbsuite.test.lldbtest as lldbtest
|
|
|
|
|
|
class RerunFailTestCase(rerun_base.RerunBaseTestCase):
|
|
"""Forces test failure on first run, success on rerun."""
|
|
@lldbtest.no_debug_info_test
|
|
def test_buildbot_catches_failure(self):
|
|
"""Issues a failing test assertion."""
|
|
if self.should_generate_issue():
|
|
self.assertTrue(
|
|
False,
|
|
"This will fail on the first call, succeed on rerun, and "
|
|
"alternate thereafter.")
|