Skip to content

Commit edc25cf

Browse files
committed
try better debug info
1 parent 011f5da commit edc25cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/venv_site_packages_libs/shared_lib_loading_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def _get_linking_info(self, path):
6666
for header in macho.headers:
6767
for cmd_load, cmd, data in header.commands:
6868
if cmd_load.cmd == mach_o.LC_LOAD_DYLIB:
69-
info["needed"].append(cmd.name)
69+
info["needed"].append(data.decode().strip("\x00"))
7070
elif cmd_load.cmd == mach_o.LC_RPATH:
71-
info["rpaths"].append(cmd.path)
71+
info["rpaths"].append(data.decode().strip("\x00"))
7272
return info
7373

7474
def _assert_elf_linking(self, path):
@@ -100,7 +100,7 @@ def _assert_macho_linking(self, path):
100100

101101
# Check dependency on the increment library.
102102
loaded_dylibs = [
103-
cmd.name
103+
data.decode().strip("\x00")
104104
for header in macho.headers
105105
for cmd_load, cmd, data in header.commands
106106
if cmd_load.cmd == mach_o.LC_LOAD_DYLIB

0 commit comments

Comments
 (0)