diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-08 09:07:33 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-08 09:07:33 +0000 |
commit | bf477df346b12ae5f6e7af165862575c15905e20 (patch) | |
tree | 5af0fa1138f1bcc4d9996f12ba7515455c16be78 /utils/lit | |
parent | 1bf013904ff4281985b7d51d8f628c90127f7d8f (diff) | |
download | external_llvm-bf477df346b12ae5f6e7af165862575c15905e20.zip external_llvm-bf477df346b12ae5f6e7af165862575c15905e20.tar.gz external_llvm-bf477df346b12ae5f6e7af165862575c15905e20.tar.bz2 |
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/lit')
-rw-r--r-- | utils/lit/TestRunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lit/TestRunner.py b/utils/lit/TestRunner.py index 003bcc8..5b4538f 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) |