summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-08 03:43:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-08 03:43:06 +0000
commit474f0df3ac86691fc2aaa201cacc7b5d0005d236 (patch)
tree7f3e50f023ca39d236b03513e5526c571a82cdd4 /utils
parent2d01b26ce74f494726ef622c853e754913dbdd31 (diff)
downloadllvm-474f0df3ac86691fc2aaa201cacc7b5d0005d236.tar.gz
llvm-474f0df3ac86691fc2aaa201cacc7b5d0005d236.tar.bz2
llvm-474f0df3ac86691fc2aaa201cacc7b5d0005d236.tar.xz
lit: Workaround a Win32/subprocess bug when appending.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/lit/TestRunner.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/lit/TestRunner.py b/utils/lit/TestRunner.py
index bee1167f6a..7abc60a1f0 100644
--- a/utils/lit/TestRunner.py
+++ b/utils/lit/TestRunner.py
@@ -112,6 +112,9 @@ def executeShCmd(cmd, cfg, cwd, results):
r[2] = tempfile.TemporaryFile(mode=r[1])
else:
r[2] = open(r[0], r[1])
+ # Workaround a Win32 and/or subprocess bug when appending.
+ if r[1] == 'a':
+ r[2].seek(0, os.SEEK_END)
result = r[2]
final_redirects.append(result)