[llvm] 2d0a2e3 - In ChangePrinters tests, redirect stderr of `diff --help` to stdout
Matt Jacobson via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 17 01:07:45 PST 2022
Author: Matt Jacobson
Date: 2022-11-17T04:06:17-05:00
New Revision: 2d0a2e334e1c669277d35e9c600ad2dc265c2baa
URL: https://github.com/llvm/llvm-project/commit/2d0a2e334e1c669277d35e9c600ad2dc265c2baa
DIFF: https://github.com/llvm/llvm-project/commit/2d0a2e334e1c669277d35e9c600ad2dc265c2baa.diff
LOG: In ChangePrinters tests, redirect stderr of `diff --help` to stdout
FreeBSD's diff writes its `--help` to stderr.
Added:
Modified:
llvm/test/Other/ChangePrinters/lit.local.cfg
Removed:
################################################################################
diff --git a/llvm/test/Other/ChangePrinters/lit.local.cfg b/llvm/test/Other/ChangePrinters/lit.local.cfg
index 95046e4f00393..dc21ca5b83242 100644
--- a/llvm/test/Other/ChangePrinters/lit.local.cfg
+++ b/llvm/test/Other/ChangePrinters/lit.local.cfg
@@ -6,7 +6,8 @@ def have_needed_
diff _support():
return False
ld_cmd = subprocess.Popen(
- ['/usr/bin/
diff ', '--help'], stdout=subprocess.PIPE, env={'LANG': 'C'})
+ ['/usr/bin/
diff ', '--help'], stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT, env={'LANG': 'C'})
ld_out = ld_cmd.stdout.read().decode()
ld_cmd.wait()
More information about the llvm-commits
mailing list