aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_utils.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-10-23 22:15:21 +0100
committerMike McQuaid2013-10-23 22:15:28 +0100
commit57efdbcf699fdc34ae3d4ecea6278a42f8d9dbe2 (patch)
treef3fff2ccb0773527241a26ff27a10d41d45f8180 /Library/Homebrew/test/test_utils.rb
parent0de5f9e4ff101a6f8b83667da252bb57a76139d0 (diff)
downloadhomebrew-57efdbcf699fdc34ae3d4ecea6278a42f8d9dbe2.tar.bz2
test_utils: fix Mavericks arch test.
Diffstat (limited to 'Library/Homebrew/test/test_utils.rb')
-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