diff options
| author | Mike McQuaid | 2012-03-08 00:52:13 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2012-03-09 16:49:19 +1300 |
| commit | 7c177633dc0947692f48c67f75cfce18d6a31cbf (patch) | |
| tree | f7b20522f05d6619ad8a37018a17b74f3602c854 /Library/Homebrew/test/test_utils.rb | |
| parent | 26169622735dc9c0222320ff2b55984a135ba909 (diff) | |
| download | homebrew-7c177633dc0947692f48c67f75cfce18d6a31cbf.tar.bz2 | |
Fix test_arch_for_command on 10.7.
Diffstat (limited to 'Library/Homebrew/test/test_utils.rb')
| -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 |
