diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_utils.rb | 8 |
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 |
