Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[test] do not rely on jruby being on PATH
  • Loading branch information
kares committed Jul 28, 2021
commit e8db17125cb86de1bb5e72d496627f2f25367582
4 changes: 2 additions & 2 deletions spec/regression/GH-4122_stdio_fileno_sanity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# even if stdio is not on 0,1,2 we can't see it without native integration anyway.
# See #4122.
describe "#4122 Stdio streams in a simple non-native JRuby instance" do
it "should have sane fileno" do
filenos = eval `jruby -Xnative.enabled=false -e 'p [$stdin.fileno,$stdout.fileno,$stderr.fileno]'`
it "should have sane fileno" do; require 'rbconfig'
filenos = eval `#{RbConfig.ruby} -Xnative.enabled=false -e 'p [$stdin.fileno,$stdout.fileno,$stderr.fileno]'`
expect(filenos[0]).to eq 0
expect(filenos[1]).to eq 1
expect(filenos[2]).to eq 2
Expand Down