aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-04-22 10:01:48 -0500
committerMisty De Meo2012-04-22 13:52:49 -0500
commit1fc97a81ec279d7827dcec7eabf6c1c28fe1c6be (patch)
tree658a06cb8480526dff2e67dc0568d6713571c151 /Library
parent4b96cf6f0b0c6da4d86d13dcd14b7244f1541900 (diff)
downloadbrew-1fc97a81ec279d7827dcec7eabf6c1c28fe1c6be.tar.bz2
Fix compiler selection tests on Xcode 4.2+
MacOS.gcc_42_build_version is nil when not available, not 0
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_compilers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_compilers.rb b/Library/Homebrew/test/test_compilers.rb
index dcc2332d4..bf9bc557a 100644
--- a/Library/Homebrew/test/test_compilers.rb
+++ b/Library/Homebrew/test/test_compilers.rb
@@ -53,7 +53,7 @@ class CompilerTests < Test::Unit::TestCase
assert !(f.fails_with? :clang)
assert !(f.fails_with? :llvm)
assert case MacOS.gcc_42_build_version
- when 0 then f.fails_with? :gcc
+ when nil then f.fails_with? :gcc
else !(f.fails_with? :gcc)
end
@@ -95,7 +95,7 @@ class CompilerTests < Test::Unit::TestCase
assert f.fails_with? :clang
assert f.fails_with? :llvm
assert case MacOS.gcc_42_build_version
- when 0 then f.fails_with? :gcc
+ when nil then f.fails_with? :gcc
else !(f.fails_with? :gcc)
end