Skip to content

Commit

Permalink
[lit] Ignore errors when decoding redirected output.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272066 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed Jun 7, 2016
1 parent 953ac69 commit 8a560fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/lit/lit/TestRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8a560fc

Please sign in to comment.