summaryrefslogtreecommitdiff
path: root/test/test_rbconfig.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-01-10 21:19:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-01-31 06:33:16 +0900
commit3a7367ccc319499127ead147e5a08f769e44208e (patch)
treec76dd64b1da7c6725a79189259d9944259ddfd5f /test/test_rbconfig.rb
parent344c16eba40457f937c6558299f52bc97d6f3ce7 (diff)
downloadruby-3a7367ccc319499127ead147e5a08f769e44208e.tar.gz
mkconfig: Map `includedir` only for system ruby
Only when installing to the system path on macOS, prepend '$(SDKROOT)' and remap `includedir`. Fix https://github.com/rbenv/ruby-build/discussions/2123
Diffstat (limited to 'test/test_rbconfig.rb')
-rw-r--r--test/test_rbconfig.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/test_rbconfig.rb b/test/test_rbconfig.rb
index fcbbbd8500..1bbf01b9a6 100644
--- a/test/test_rbconfig.rb
+++ b/test/test_rbconfig.rb
@@ -51,13 +51,4 @@ class TestRbConfig < Test::Unit::TestCase
assert_match(/\$\(sitearch|\$\(rubysitearchprefix\)/, val, "#{key} #{bug7823}")
end
end
-
- if /darwin/ =~ RUBY_PLATFORM
- def test_sdkroot
- assert_separately([{"SDKROOT" => "$(prefix)/SDKRoot"}], "#{<<~"begin;"}\n#{<<~'end;'}")
- begin;
- assert_equal RbConfig::CONFIG["prefix"]+"/SDKRoot", RbConfig::CONFIG["SDKROOT"]
- end;
- end
- end
end