From 20670ba44066df0aae536822b7f7834ee3198c0d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 1 Jan 2021 14:09:13 -0800 Subject: [PATCH] [compiler-rt][test] Suppress stderr of ldd output --- compiler-rt/test/lit.common.cfg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py index e487b4d9..30cfdbe 100644 --- a/compiler-rt/test/lit.common.cfg.py +++ b/compiler-rt/test/lit.common.cfg.py @@ -383,6 +383,7 @@ if config.host_os == 'Linux': # 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() -- 2.7.4