Skip to content

Commit 93f28d0

Browse files
committed
of course there is no libc on mac os x, it is called system_c.dylib
1 parent 4f5971e commit 93f28d0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

vmprof/test/test_c_symboltable.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,9 @@ def test_sofile_in_srcfile(self):
108108

109109
assert ffi.string(name[0]) == b"abs"
110110
# should be something like /lib64/libc.so.6 (e.g. on Fedora 25)
111-
assert b"libc" in ffi.string(src[0])
112-
assert b".so" in ffi.string(src[0])
111+
if sys.platform.startswith("linux"):
112+
assert b"libc" in ffi.string(src[0])
113+
assert b".so" in ffi.string(src[0])
114+
elif sys.platform == "darwin":
115+
# osx
116+
assert b"libsystem_c.dylib" in ffi.string(src[0])

0 commit comments

Comments
 (0)