[llvm-commits] [llvm] r86449 - /llvm/trunk/utils/lit/TestRunner.py
Daniel Dunbar
daniel at zuster.org
Sun Nov 8 01:07:34 PST 2009
Author: ddunbar
Date: Sun Nov 8 03:07:33 2009
New Revision: 86449
URL: http://llvm.org/viewvc/llvm-project?rev=86449&view=rev
Log:
lit: Hardcode whence seek value, os.SEEK_END isn't always available.
Modified:
llvm/trunk/utils/lit/TestRunner.py
Modified: llvm/trunk/utils/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/TestRunner.py?rev=86449&r1=86448&r2=86449&view=diff
==============================================================================
--- llvm/trunk/utils/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/TestRunner.py Sun Nov 8 03:07:33 2009
@@ -114,7 +114,7 @@
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)
More information about the llvm-commits
mailing list