summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2016-06-07 22:06:57 +0000
committerDaniel Dunbar <daniel@zuster.org>2016-06-07 22:06:57 +0000
commitf62faf6c48102366e9028588720195bfeb62a3d0 (patch)
tree726f1a0d6ce4533ccf7f8ebd02456c9ac1e49163 /llvm/utils/lit
parentf894b5e89ca0f46fd0776464269e89d741c376ee (diff)
downloadbcm5719-llvm-f62faf6c48102366e9028588720195bfeb62a3d0.tar.gz
bcm5719-llvm-f62faf6c48102366e9028588720195bfeb62a3d0.zip
[lit] Ignore errors when decoding redirected output.
llvm-svn: 272066
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r--llvm/utils/lit/lit/TestRunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py
index adf3d62e107..761fcb981a1 100644
--- a/llvm/utils/lit/lit/TestRunner.py
+++ b/llvm/utils/lit/lit/TestRunner.py
@@ -476,7 +476,7 @@ def executeScriptInternal(test, litConfig, tmpBase, commands, cwd):
for (name, path, data) in result.outputFiles:
if data.strip():
out += "# redirected output from %r:\n" % (name,)
- data = to_string(data.decode('utf-8'))
+ data = to_string(data.decode('utf-8', errors='replace'))
if len(data) > 1024:
out += data[:1024] + "\n...\n"
out += "note: data was truncated\n"
OpenPOWER on IntegriCloud