summaryrefslogtreecommitdiffstats
path: root/lld/test/lit.cfg.py
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-12-12 00:31:46 +0000
committerPetr Hosek <phosek@chromium.org>2017-12-12 00:31:46 +0000
commit17d71c014cdd93a71b9c6801c7da3344f893ba97 (patch)
tree41ac3a103ba79b7d3c31edef6a5d8bcee1c32320 /lld/test/lit.cfg.py
parentf2356b3c05f55d9b03518f64d837f70a8d2206dd (diff)
downloadbcm5719-llvm-17d71c014cdd93a71b9c6801c7da3344f893ba97.tar.gz
bcm5719-llvm-17d71c014cdd93a71b9c6801c7da3344f893ba97.zip
[ELF] Use shell to check the file permissions
This is less error-prone to mask settings than stat. Differential Revision: https://reviews.llvm.org/D41097 llvm-svn: 320442
Diffstat (limited to 'lld/test/lit.cfg.py')
-rw-r--r--lld/test/lit.cfg.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/lld/test/lit.cfg.py b/lld/test/lit.cfg.py
index f8436cab613..ae0dd187c60 100644
--- a/lld/test/lit.cfg.py
+++ b/lld/test/lit.cfg.py
@@ -91,11 +91,3 @@ if tar_executable:
if 'GNU tar' in tar_version.stdout.read().decode():
config.available_features.add('gnutar')
tar_version.wait()
-
-stat_executable = lit.util.which('stat', config.environment['PATH'])
-if stat_executable:
- stat_version = subprocess.Popen(
- [stat_executable, '--version'], stdout=subprocess.PIPE, env={'LANG': 'C'})
- if 'GNU coreutils' in stat_version.stdout.read().decode():
- config.available_features.add('gnustat')
- stat_version.wait()
OpenPOWER on IntegriCloud