diff options
| author | Jack Nagel | 2012-04-01 14:56:04 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-04-01 14:56:04 -0500 |
| commit | bb8fcc89014de64d5faf7e8ac9a252144addb508 (patch) | |
| tree | e3f86f42033e1629608ab988079b4e31500fe540 /Library | |
| parent | de444ead0b8898ea2989d6a8d5984c4c31318a64 (diff) | |
| download | brew-bb8fcc89014de64d5faf7e8ac9a252144addb508.tar.bz2 | |
Reset compiler when testing fails_with
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_formula.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb index 0735d55d6..27761e289 100644 --- a/Library/Homebrew/test/test_formula.rb +++ b/Library/Homebrew/test/test_formula.rb @@ -77,6 +77,7 @@ class FormulaTests < Test::Unit::TestCase cs = CompilerSelector.new(f) cs.select_compiler assert_equal MacOS.default_compiler, ENV.compiler + ENV.send MacOS.default_compiler f = TestNoCompilerFailures.new assert !(f.fails_with? :clang) @@ -85,6 +86,7 @@ class FormulaTests < Test::Unit::TestCase cs = CompilerSelector.new(f) cs.select_compiler assert_equal MacOS.default_compiler, ENV.compiler + ENV.send MacOS.default_compiler f = TestLLVMFailure.new assert !(f.fails_with? :clang) @@ -96,6 +98,7 @@ class FormulaTests < Test::Unit::TestCase when 0..210 then :gcc else :clang end + ENV.send MacOS.default_compiler f = TestMixedCompilerFailures.new assert f.fails_with? :clang @@ -104,6 +107,7 @@ class FormulaTests < Test::Unit::TestCase cs = CompilerSelector.new(f) cs.select_compiler assert_equal :llvm, ENV.compiler + ENV.send MacOS.default_compiler f = TestMoreMixedCompilerFailures.new assert !(f.fails_with? :clang) @@ -112,6 +116,7 @@ class FormulaTests < Test::Unit::TestCase cs = CompilerSelector.new(f) cs.select_compiler assert_equal :clang, ENV.compiler + ENV.send MacOS.default_compiler f = TestEvenMoreMixedCompilerFailures.new assert f.fails_with? :clang @@ -120,6 +125,7 @@ class FormulaTests < Test::Unit::TestCase cs = CompilerSelector.new(f) cs.select_compiler assert_equal :clang, ENV.compiler + ENV.send MacOS.default_compiler f = TestBlockWithoutBuildCompilerFailure.new assert f.fails_with? :clang @@ -128,5 +134,6 @@ class FormulaTests < Test::Unit::TestCase cs = CompilerSelector.new(f) cs.select_compiler assert_equal MacOS.default_compiler, ENV.compiler + ENV.send MacOS.default_compiler end end |
