[llvm-branch-commits] [compiler-rt] 20670ba - [compiler-rt][test] Suppress stderr of ldd output
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jan 1 14:13:15 PST 2021
Author: Fangrui Song
Date: 2021-01-01T14:09:13-08:00
New Revision: 20670ba44066df0aae536822b7f7834ee3198c0d
URL: https://github.com/llvm/llvm-project/commit/20670ba44066df0aae536822b7f7834ee3198c0d
DIFF: https://github.com/llvm/llvm-project/commit/20670ba44066df0aae536822b7f7834ee3198c0d.diff
LOG: [compiler-rt][test] Suppress stderr of ldd output
Added:
Modified:
compiler-rt/test/lit.common.cfg.py
Removed:
################################################################################
diff --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py
index e487b4d955bf..30cfdbee13e2 100644
--- a/compiler-rt/test/lit.common.cfg.py
+++ b/compiler-rt/test/lit.common.cfg.py
@@ -383,6 +383,7 @@ def get_macos_aligned_version(macos_vers):
# NB: 'ldd' is just one of the tools commonly installed as part of glibc/musl
ldd_ver_cmd = subprocess.Popen(['ldd', '--version'],
stdout=subprocess.PIPE,
+ stderr=subprocess.DEVNULL,
env={'LANG': 'C'})
sout, _ = ldd_ver_cmd.communicate()
ver_lines = sout.splitlines()
More information about the llvm-branch-commits
mailing list