[llvm] [LitOpen sub-processes with IO streams in binary mode (PR #194577)

Benjamin Stott via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 02:44:39 PDT 2026


https://github.com/BStott6 created https://github.com/llvm/llvm-project/pull/194577

None

>From 6f8ebd567270cade9b6b5dbe94766e525ff5aba7 Mon Sep 17 00:00:00 2001
From: BStott <Benjamin.Stott at sony.com>
Date: Thu, 15 Jan 2026 09:27:25 +0000
Subject: [PATCH] Open sub-processes with IO streams in binary mode

---
 llvm/utils/lit/lit/TestRunner.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py
index 0842c58a5f88a..fc7e0001a7628 100644
--- a/llvm/utils/lit/lit/TestRunner.py
+++ b/llvm/utils/lit/lit/TestRunner.py
@@ -475,8 +475,7 @@ def _executeShCmd(cmd, shenv, results, timeoutHelper):
                     stderr=stderr,
                     env=cmd_shenv.env,
                     close_fds=kUseCloseFDs,
-                    universal_newlines=True,
-                    errors="replace",
+                    text=False,
                 )
             )
             if old_umask != -1:



More information about the llvm-commits mailing list