First public build of Swift 5.1
This commit is contained in:
parent
5f32c8916f
commit
d750885f12
9 changed files with 633 additions and 199 deletions
35
linux-tests-python-3.patch
Normal file
35
linux-tests-python-3.patch
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
--- swift-integration-tests/test-snapshot-binaries/linux_load_commands.py.orig 2019-07-22 18:29:09.865242157 -0500
|
||||
+++ swift-integration-tests/test-snapshot-binaries/linux_load_commands.py 2019-07-22 18:29:36.655204752 -0500
|
||||
@@ -85,12 +85,12 @@
|
||||
numberOfLinesSeen = 0
|
||||
|
||||
print("Visiting lib: {}".format(lib))
|
||||
- lines = list(reversed(subprocess.check_output([args.read_elf, "-program-headers", lib]).split("\n")[:-1]))
|
||||
+ lines = list(reversed(subprocess.check_output([args.read_elf, "-program-headers", lib]).split(b"\n")[:-1]))
|
||||
p = ParseState()
|
||||
|
||||
# Until we finish parsing or run out of lines to parse...
|
||||
while len(lines) > 0:
|
||||
- l = lines.pop()
|
||||
+ l = lines.pop().decode("utf-8")
|
||||
print("DUMP: '{}'".format(l))
|
||||
assert(p is not None)
|
||||
curState = p
|
||||
@@ -143,7 +143,7 @@
|
||||
"-iname",
|
||||
"*.so"
|
||||
]
|
||||
- return subprocess.check_output(cmd).split("\n")[:-1]
|
||||
+ return subprocess.check_output(cmd).split(b"\n")[:-1]
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
@@ -154,7 +154,7 @@
|
||||
|
||||
libraries = get_libraries(args.package_path)
|
||||
for l in libraries:
|
||||
- process_library(args, l)
|
||||
+ process_library(args, l.decode("utf-8"))
|
||||
sys.exit(0)
|
||||
|
||||
if __name__ == "__main__":
|
||||
Loading…
Add table
Add a link
Reference in a new issue