summaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-12-23 21:20:09 +0000
committerKamil Rytarowski <n54@gmx.com>2018-12-23 21:20:09 +0000
commit364b26f557aeaba9ed04c4872a12d4ca3c079f57 (patch)
tree5b84d6010c78935b1abf53de4b662d5996a93e6a /lld
parent67cc0b45fcacba34f64b61babf41d865f0d5a26a (diff)
Tolerate flaky LLD tests on NetBSD
Summary: For unknown reasons LLD tests are flaky on the NetBSD buildbot, but not on local machines of developers. Unless the linker will be fully functional on this target, allow to pass flaky tests with optional retry. Reviewers: joerg, mgorny, ruiu Reviewed By: mgorny Subscribers: lebedev.ri, MaskRay, llvm-commits, #lld Tags: #lld Differential Revision: https://reviews.llvm.org/D56053
Diffstat (limited to 'lld')
-rw-r--r--lld/test/lit.cfg.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/test/lit.cfg.py b/lld/test/lit.cfg.py
index 9989a1cc97a..7bc966c912f 100644
--- a/lld/test/lit.cfg.py
+++ b/lld/test/lit.cfg.py
@@ -45,6 +45,11 @@ tool_patterns = [
llvm_config.add_tool_substitutions(tool_patterns)
+# LLD tests tend to be flaky on NetBSD, so add some retries.
+# We don't do this on other platforms because it's slower.
+if platform.system() in ['NetBSD']:
+ config.test_retry_attempts = 2
+
# When running under valgrind, we mangle '-vg' onto the end of the triple so we
# can check it with XFAIL and XTARGET.
if lit_config.useValgrind: