diff options
| author | Mike McQuaid | 2013-10-23 22:15:21 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-23 22:15:28 +0100 |
| commit | 3716dae0ced97b9972f26dac297bafc7cbbded28 (patch) | |
| tree | 04cb8371eddd48e7aa2e24946a355bcc28aca914 /Library/Homebrew | |
| parent | 0296ffa0efb7692470bbb8312e0b0fcdb61263dd (diff) | |
| download | brew-3716dae0ced97b9972f26dac297bafc7cbbded28.tar.bz2 | |
test_utils: fix Mavericks arch test.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/test_utils.rb | 9 |
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 |
