Skip to content

Commit 9adecc6

Browse files
committed
[GR-14391] Don’t be so keen to capture warnings in launcher specs
PullRequest: truffleruby/687
2 parents 568058f + 57563d6 commit 9adecc6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/truffle/launcher_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def graalvm_bash_launcher?
3838
launchers.each do |launcher, (test, skip_success)|
3939
unless [:ruby, :truffleruby].include?(launcher)
4040
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")
4242
out.should =~ test
4343
$?.success?.should == true unless skip_success
4444
end
@@ -52,7 +52,7 @@ def graalvm_bash_launcher?
5252

5353
bin_dirs.each do |name, bin_dir|
5454
it "'#{launcher}' in `#{name}` directory runs" do
55-
out = `#{bin_dir}/#{launcher} --version 2>&1`
55+
out = `#{bin_dir}/#{launcher} --version`
5656
out.should =~ test
5757
$?.success?.should == true unless skip_success
5858
end
@@ -239,7 +239,7 @@ def should_print_full_java_command(options, env: {})
239239
end
240240

241241
it "prints help containing runtime options" do
242-
out = ruby_exe(nil, options: "--help", args: "2>&1")
242+
out = ruby_exe(nil, options: "--help")
243243
$?.success?.should == true
244244

245245
if TruffleRuby.native?
@@ -255,7 +255,7 @@ def should_print_full_java_command(options, env: {})
255255
end
256256

257257
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")
259259
$?.success?.should == true
260260
out.should =~ /language options/i
261261
out.should include("Ruby:")
@@ -264,7 +264,7 @@ def should_print_full_java_command(options, env: {})
264264

265265
guard -> { TruffleRuby.sulong? } do
266266
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")
268268
$?.success?.should == true
269269
out.should =~ /language options/i
270270
out.should include("LLVM:")
@@ -273,14 +273,14 @@ def should_print_full_java_command(options, env: {})
273273
end
274274

275275
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")
277277
$?.success?.should == true
278278
out.should include(RUBY_DESCRIPTION)
279279
out.should include(':b')
280280
end
281281

282282
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")
284284
$?.success?.should == true
285285
out.should include(RUBY_DESCRIPTION)
286286
out.should include(':b')

0 commit comments

Comments
 (0)