Fix test_arch_for_command on 10.7.
This commit is contained in:
parent
d6851033f9
commit
31e2ec485b
@ -17,14 +17,18 @@ class UtilTests < Test::Unit::TestCase
|
||||
|
||||
def test_arch_for_command
|
||||
arches=archs_for_command '/usr/bin/svn'
|
||||
if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 6
|
||||
if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 7
|
||||
assert_equal 2, arches.length
|
||||
assert arches.include?(:x86_64)
|
||||
elsif `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i = 6
|
||||
assert_equal 3, arches.length
|
||||
assert arches.include?(:x86_64)
|
||||
assert arches.include?(:ppc7400)
|
||||
else
|
||||
assert_equal 2, arches.length
|
||||
assert arches.include?(:ppc7400)
|
||||
end
|
||||
assert arches.include?(:i386)
|
||||
assert arches.include?(:ppc7400)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user