summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Fuzzer/test/lit.cfg')
-rw-r--r--llvm/lib/Fuzzer/test/lit.cfg8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/test/lit.cfg b/llvm/lib/Fuzzer/test/lit.cfg
index e625fbe2286..e262e3c2585 100644
--- a/llvm/lib/Fuzzer/test/lit.cfg
+++ b/llvm/lib/Fuzzer/test/lit.cfg
@@ -1,4 +1,5 @@
import lit.formats
+import sys
config.name = "LLVMFuzzer"
config.test_format = lit.formats.ShTest(True)
@@ -25,3 +26,10 @@ if config.has_lsan:
else:
lit_config.note('lsan feature unavailable')
+if sys.platform.startswith('linux'):
+ # Note the value of ``sys.platform`` is not consistent
+ # between python 2 and 3, hence the use of ``.startswith()``.
+ lit_config.note('linux feature available')
+ config.available_features.add('linux')
+else:
+ lit_config.note('linux feature unavailable')
OpenPOWER on IntegriCloud