aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-03-08 00:52:13 -0800
committerMike McQuaid2012-03-09 16:49:19 +1300
commit31e2ec485b1776cb00dac5043d2cae1c8d0aa123 (patch)
tree31caccaa7232f39445cfd5572e9fa750b4c32d46 /Library
parentd6851033f9da72746eea1e382e228c4abb311e76 (diff)
downloadbrew-31e2ec485b1776cb00dac5043d2cae1c8d0aa123.tar.bz2
Fix test_arch_for_command on 10.7.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_utils.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb
index 98f31ca41..ca8016c27 100644
--- a/Library/Homebrew/test/test_utils.rb
+++ b/Library/Homebrew/test/test_utils.rb
@@ -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