test/os/mac/pkgconfig_spec: fix libffi detection on 12.3+ SDK

This commit is contained in:
Bo Anderson 2022-04-27 00:59:15 +01:00
parent 7d10bfc6b3
commit b3da8dbd24
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -68,7 +68,7 @@ describe "pkg-config" do
it "returns the correct version for libffi" do
version = File.foreach("#{sdk}/usr/include/ffi/ffi.h")
.lazy
.grep(/^\s*libffi (\S+) - Copyright /) { Regexp.last_match(1) }
.grep(/^\s*libffi (\S+)\s+- Copyright /) { Regexp.last_match(1) }
.first
skip "Cannot detect system libffi version." if version == "PyOBJC"