summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-08 09:07:33 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-08 09:07:33 +0000
commitbf477df346b12ae5f6e7af165862575c15905e20 (patch)
tree5af0fa1138f1bcc4d9996f12ba7515455c16be78 /utils
parent1bf013904ff4281985b7d51d8f628c90127f7d8f (diff)
downloadllvm-bf477df346b12ae5f6e7af165862575c15905e20.tar.gz
llvm-bf477df346b12ae5f6e7af165862575c15905e20.tar.bz2
llvm-bf477df346b12ae5f6e7af165862575c15905e20.tar.xz
lit: Hardcode whence seek value, os.SEEK_END isn't always available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/lit/TestRunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lit/TestRunner.py b/utils/lit/TestRunner.py
index 003bcc8e30..5b4538f7d2 100644
--- a/utils/lit/TestRunner.py
+++ b/utils/lit/TestRunner.py
@@ -114,7 +114,7 @@ def executeShCmd(cmd, cfg, cwd, results):
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)
+ r[2].seek(0, 2)
result = r[2]
final_redirects.append(result)