@@ -38,7 +38,7 @@ def graalvm_bash_launcher?
38
38
launchers . each do |launcher , ( test , skip_success ) |
39
39
unless [ :ruby , :truffleruby ] . include? ( launcher )
40
40
it "'#{ launcher } ' runs as an -S command" do
41
- out = ruby_exe ( nil , options : "-S#{ launcher } --version 2>&1 " )
41
+ out = ruby_exe ( nil , options : "-S#{ launcher } --version" )
42
42
out . should =~ test
43
43
$?. success? . should == true unless skip_success
44
44
end
@@ -52,7 +52,7 @@ def graalvm_bash_launcher?
52
52
53
53
bin_dirs . each do |name , bin_dir |
54
54
it "'#{ launcher } ' in `#{ name } ` directory runs" do
55
- out = `#{ bin_dir } /#{ launcher } --version 2>&1 `
55
+ out = `#{ bin_dir } /#{ launcher } --version`
56
56
out . should =~ test
57
57
$?. success? . should == true unless skip_success
58
58
end
@@ -239,7 +239,7 @@ def should_print_full_java_command(options, env: {})
239
239
end
240
240
241
241
it "prints help containing runtime options" do
242
- out = ruby_exe ( nil , options : "--help" , args : "2>&1" )
242
+ out = ruby_exe ( nil , options : "--help" )
243
243
$?. success? . should == true
244
244
245
245
if TruffleRuby . native?
@@ -255,7 +255,7 @@ def should_print_full_java_command(options, env: {})
255
255
end
256
256
257
257
it "prints help:languages containing ruby language options" do
258
- out = ruby_exe ( nil , options : "--help:languages" , args : "2>&1" )
258
+ out = ruby_exe ( nil , options : "--help:languages" )
259
259
$?. success? . should == true
260
260
out . should =~ /language options/i
261
261
out . should include ( "Ruby:" )
@@ -264,7 +264,7 @@ def should_print_full_java_command(options, env: {})
264
264
265
265
guard -> { TruffleRuby . sulong? } do
266
266
it "prints help:languages containing llvm language options" do
267
- out = ruby_exe ( nil , options : "--help:languages" , args : "2>&1" )
267
+ out = ruby_exe ( nil , options : "--help:languages" )
268
268
$?. success? . should == true
269
269
out . should =~ /language options/i
270
270
out . should include ( "LLVM:" )
@@ -273,14 +273,14 @@ def should_print_full_java_command(options, env: {})
273
273
end
274
274
275
275
it "understands ruby polyglot options" do
276
- out = ruby_exe ( nil , options : "--ruby.show_version=true --ruby.to_execute=p:b --ruby.execution_action=INLINE" , args : "2>&1" )
276
+ out = ruby_exe ( nil , options : "--ruby.show_version=true --ruby.to_execute=p:b --ruby.execution_action=INLINE" )
277
277
$?. success? . should == true
278
278
out . should include ( RUBY_DESCRIPTION )
279
279
out . should include ( ':b' )
280
280
end
281
281
282
282
it "understands ruby polyglot options without ruby. prefix" do
283
- out = ruby_exe ( nil , options : "--show_version=true --to_execute=p:b --execution_action=INLINE" , args : "2>&1" )
283
+ out = ruby_exe ( nil , options : "--show_version=true --to_execute=p:b --execution_action=INLINE" )
284
284
$?. success? . should == true
285
285
out . should include ( RUBY_DESCRIPTION )
286
286
out . should include ( ':b' )
0 commit comments