diff options
-rw-r--r-- | llvm/utils/lit/lit/TestRunner.py | 2 |
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" |