From b3da8dbd24f61fdc5f319bf1a4253e86682a0bff Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 27 Apr 2022 00:59:15 +0100 Subject: [PATCH] test/os/mac/pkgconfig_spec: fix libffi detection on 12.3+ SDK --- Library/Homebrew/test/os/mac/pkgconfig_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/test/os/mac/pkgconfig_spec.rb b/Library/Homebrew/test/os/mac/pkgconfig_spec.rb index 4966820767..6b76ff1430 100644 --- a/Library/Homebrew/test/os/mac/pkgconfig_spec.rb +++ b/Library/Homebrew/test/os/mac/pkgconfig_spec.rb @@ -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"