projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bf0139
)
lit: Hardcode whence seek value, os.SEEK_END isn't always available.
author
Daniel Dunbar
<daniel@zuster.org>
Sun, 8 Nov 2009 09:07:33 +0000
(09:07 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Sun, 8 Nov 2009 09:07:33 +0000
(09:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86449
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/lit/TestRunner.py
patch
|
blob
|
history
diff --git
a/utils/lit/TestRunner.py
b/utils/lit/TestRunner.py
index 003bcc8e3066fa4b29e6622ccadd1ec2acc727a4..5b4538f7d291cb201008729ed0022536f439062e 100644
(file)
--- 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)