From bf477df346b12ae5f6e7af165862575c15905e20 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 8 Nov 2009 09:07:33 +0000 Subject: [PATCH] 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 --- utils/lit/TestRunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/lit/TestRunner.py b/utils/lit/TestRunner.py index 003bcc8e306..5b4538f7d29 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) -- 2.34.1