File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 44
44
ENV [ 'GEM_HOME' ] = nil
45
45
@stderr = tmp ( "stderr" )
46
46
@redirect = "2>#{ @stderr } "
47
+
48
+ # GR-23507, GR-44103: prevent thread warnings on stdout to break specs/tests
49
+ @ignore_jvm_thread_warnings = '--vm.Xlog:os+thread=off'
47
50
end
48
51
49
52
after :each do
@@ -433,7 +436,7 @@ def should_print_full_java_command(options, env: {})
433
436
434
437
[ 'RUBYOPT' , 'TRUFFLERUBYOPT' ] . each do |var |
435
438
it "should recognize ruby --vm options in #{ var } when switching to JVM" do
436
- env = { var => "--jvm --vm.Dfoo=bar" } # ignoring the original value of RUBYOPT/TRUFFLERUBYOPT on purpose here
439
+ env = { var => "--jvm #{ @ignore_jvm_thread_warnings } --vm.Dfoo=bar" } # ignoring the original value of RUBYOPT/TRUFFLERUBYOPT on purpose here
437
440
out = ruby_exe ( 'puts RUBY_DESCRIPTION; puts Truffle::System.get_java_property("foo")' , env : env , args : @redirect )
438
441
check_status_and_empty_stderr
439
442
out = out . lines . map ( &:chomp )
@@ -449,7 +452,7 @@ def should_print_full_java_command(options, env: {})
449
452
end
450
453
451
454
it "switches to JVM with --jvm as a Ruby argument" do
452
- out = ruby_exe ( nil , options : "--jvm --version" , args : @redirect )
455
+ out = ruby_exe ( nil , options : "--jvm #{ @ignore_jvm_thread_warnings } --version" , args : @redirect )
453
456
check_status_and_empty_stderr
454
457
out . should =~ /GraalVM (CE|EE) JVM/
455
458
end
You can’t perform that action at this time.
0 commit comments