Skip to content

Commit da8cf99

Browse files
committed
Added test scenario for ruby#11322
1 parent 7e0910a commit da8cf99

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tool/test_for_warn_bundled_gems/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@ echo
5555
echo "* Show warning when warn is not the standard one in the current scope"
5656
ruby test_warn_redefined.rb
5757
echo
58+
59+
echo "* Show warning with bootsnap and some gem in Gemfile"
60+
ruby test_warn_bootsnap_and_gem.rb
61+
echo
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require "bundler/inline"
2+
3+
gemfile do
4+
source "https://rubygems.org"
5+
gem "bootsnap", require: false
6+
gem "childprocess", "5.0.0", require: false # Has undeclared logger dependency
7+
end
8+
9+
ENV["BOOTSNAP_CACHE_DIR"] ||= "tmp/cache/bootsnap"
10+
require "bootsnap/setup"
11+
require "childprocess"

0 commit comments

Comments
 (0)