diff options
| author | David Höppner | 2009-09-13 13:21:22 +0200 |
|---|---|---|
| committer | Max Howell | 2009-09-14 20:33:46 +0100 |
| commit | 1adaaff49dc60294c5ac2da65df7b24fc222431f (patch) | |
| tree | 0971f51802fb9cb94163cbad0b24c47d301bd18e | |
| parent | d946aa4ee3c8b86e5463a6d1795a57fec6ef1470 (diff) | |
| download | homebrew-1adaaff49dc60294c5ac2da65df7b24fc222431f.tar.bz2 | |
Fix unittest test_arch_for_command for 10.5
| -rwxr-xr-x | Library/Homebrew/unittest.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Library/Homebrew/unittest.rb b/Library/Homebrew/unittest.rb index 255b55601..15b0dc3cf 100755 --- a/Library/Homebrew/unittest.rb +++ b/Library/Homebrew/unittest.rb @@ -421,10 +421,13 @@ class BeerTasting <Test::Unit::TestCase end def test_arch_for_command - # NOTE only works on Snow Leopard I bet, pick a better file! arches=arch_for_command '/usr/bin/svn' - assert_equal 3, arches.count - assert arches.include?(:x86_64) + if `sw_vers -productVersion` =~ /10\.(\d)\.(\d+)/ and $1.to_i >= 6 + assert_equal 3, arches.count + assert arches.include?(:x86_64) + else + assert_equal 2, arches.count + end assert arches.include?(:i386) assert arches.include?(:ppc7400) end |
