Skip to content

Commit 295af15

Browse files
committed
Require rbconfig before use in harness-common so we can disable gems
It's used on the second line of this file. If we require it here we can run any harness with `ruby --disable-all`: ruby --disable-all -Iharness-once benchmarks/keyword_args.rb
1 parent a0cfc0c commit 295af15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

harness/harness-common.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'rbconfig'
2+
13
# Ensure the ruby in PATH is the ruby running this, so we can safely shell out to other commands
24
ruby_in_path = `ruby -e 'print RbConfig.ruby'`
35
unless ruby_in_path == RbConfig.ruby

0 commit comments

Comments
 (0)