Skip to content

Commit 4f5d348

Browse files
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.6 [skip ci]
1 parent f88bde8 commit 4f5d348

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

llvm/test/MC/COFF/stdin.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
# RUN: echo "// comment" > %t.input
22
# RUN: which llvm-mc | %python %s %t
33

4+
import argparse
45
import subprocess
56
import sys
67

8+
parser = argparse.ArgumentParser()
9+
parser.add_argument("temp_file")
10+
arguments = parser.parse_args()
11+
712
llvm_mc_binary = sys.stdin.readlines()[0].strip()
8-
temp_file = sys.argv[1]
13+
temp_file = arguments.temp_file
914
input_file = temp_file + ".input"
1015

1116
with open(temp_file, "w") as mc_stdout:
17+
## We need to test that starting on an input stream with a non-zero offset
18+
## does not trigger an assertion in WinCOFFObjectWriter.cpp, so we seek
19+
## past zero for STDOUT.
1220
mc_stdout.seek(4)
1321
subprocess.run(
1422
[llvm_mc_binary, "-filetype=obj", "-triple", "i686-pc-win32", input_file],

0 commit comments

Comments
 (0)