diff options
| author | Mike McQuaid | 2012-03-08 00:59:11 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2012-03-09 16:49:19 +1300 |
| commit | 0e2258f0fa6f94d43f9e0991f2da250c0f655e4f (patch) | |
| tree | eec8cf745a4af4f861fb1a5313fd90cf3d5d2e9a /Library | |
| parent | 31e2ec485b1776cb00dac5043d2cae1c8d0aa123 (diff) | |
| download | brew-0e2258f0fa6f94d43f9e0991f2da250c0f655e4f.tar.bz2 | |
Fix test_ENV on 10.7/Xcode 4.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_ENV.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_ENV.rb b/Library/Homebrew/test/test_ENV.rb index d2f4b59f7..5eceaa2bf 100644 --- a/Library/Homebrew/test/test_ENV.rb +++ b/Library/Homebrew/test/test_ENV.rb @@ -9,7 +9,13 @@ ARGV.extend(HomebrewArgvExtension) class EnvironmentTests < Test::Unit::TestCase def test_ENV_options ENV.gcc_4_0 - ENV.gcc_4_2 + begin + ENV.gcc_4_2 + rescue RuntimeError => e + if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i < 7 + raise e + end + end ENV.O3 ENV.minimal_optimization ENV.no_optimization |
