aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2012-03-21 12:01:19 -0500
committerJack Nagel2012-03-21 12:22:22 -0500
commit5dc15272d9fa925bd801e4b54b8fe91040ae2b21 (patch)
treea24840d4ea0db335af9f58b4b0b02f7db5bc77e0 /Library/Homebrew/test
parent01c14f877574ab451e499fa5986f3cfebe957b3d (diff)
downloadbrew-5dc15272d9fa925bd801e4b54b8fe91040ae2b21.tar.bz2
ENV: reset LD when switching compilers
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_ENV.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_ENV.rb b/Library/Homebrew/test/test_ENV.rb
index 5eceaa2bf..8ab1c1f24 100644
--- a/Library/Homebrew/test/test_ENV.rb
+++ b/Library/Homebrew/test/test_ENV.rb
@@ -25,4 +25,11 @@ class EnvironmentTests < Test::Unit::TestCase
assert !ENV.cc.empty?
assert !ENV.cxx.empty?
end
+
+ def test_switching_compilers
+ ENV.llvm
+ ENV.clang
+ assert_equal ENV['LD'], ENV['CC']
+ assert_equal ENV['OBJC'], ENV['CC']
+ end
end