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
commitd82bfafa796ac015d2dd5b7da6084a4838c1f1d5 (patch)
tree773f719f749dcc3ea72459c8ee1ceb083253f3cd /Library/Homebrew/test
parentf34e48c35c89626d0f327a0b381a5ed6e5277451 (diff)
downloadhomebrew-d82bfafa796ac015d2dd5b7da6084a4838c1f1d5.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