hardware: correctly detect early 2015 MacBook Pro.
Closes Homebrew/homebrew#38996. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
da9e481205
commit
0b4379e049
@ -44,6 +44,8 @@ module MacCPUs
|
||||
:ivybridge
|
||||
when 0x10B282DC # Haswell
|
||||
:haswell
|
||||
when 0x582ed09c # Broadwell
|
||||
:broadwell
|
||||
else
|
||||
:dunno
|
||||
end
|
||||
|
||||
@ -7,7 +7,7 @@ class HardwareTests < Homebrew::TestCase
|
||||
end
|
||||
|
||||
def test_hardware_intel_family
|
||||
families = [:core, :core2, :penryn, :nehalem, :arrandale, :sandybridge, :ivybridge, :haswell]
|
||||
families = [:core, :core2, :penryn, :nehalem, :arrandale, :sandybridge, :ivybridge, :haswell, :broadwell]
|
||||
assert_includes families, Hardware::CPU.family
|
||||
end if Hardware::CPU.intel?
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user