aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/test/test_utils.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb
index c21b9fb72..ae259c82e 100644
--- a/Library/Homebrew/test/test_utils.rb
+++ b/Library/Homebrew/test/test_utils.rb
@@ -15,18 +15,23 @@ class UtilTests < Test::Unit::TestCase
return unless File.exist? '/usr/bin/svn'
archs = archs_for_command '/usr/bin/svn'
- if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 7
+ if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 9
+ assert_equal 1, archs.length
+ assert archs.include?(:x86_64)
+ elsif `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 7
assert_equal 2, archs.length
assert archs.include?(:x86_64)
+ assert archs.include?(:i386)
elsif `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i == 6
assert_equal 3, archs.length
assert archs.include?(:x86_64)
+ assert archs.include?(:i386)
assert archs.include?(:ppc7400)
else
assert_equal 2, archs.length
+ assert archs.include?(:i386)
assert archs.include?(:ppc7400)
end
- assert archs.include?(:i386)
end
end