File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,15 @@ def should_print_full_java_command(options, env: {})
81
81
end
82
82
83
83
it "does not create context on --version and -v" do
84
- short = Benchmark . realtime { ruby_exe ( nil , options : "--help:languages" ) }
85
- version = Benchmark . realtime { ruby_exe ( nil , options : "--version" ) }
86
- v = Benchmark . realtime { ruby_exe ( nil , options : "-v" ) }
87
-
88
- version . should <= short + 0.5
89
- v . should <= short + 0.5
84
+ v = ruby_exe ( nil , options : "-Xlog=FINE -v" , args : "2>&1" )
85
+ v . should_not include ( "createContext()" )
86
+ v . should_not include ( "patchContext()" )
87
+ v . should include ( "truffleruby " )
88
+
89
+ version = ruby_exe ( nil , options : "-Xlog=FINE --version" , args : "2>&1" )
90
+ version . should_not include ( "createContext()" )
91
+ version . should_not include ( "patchContext()" )
92
+ version . should include ( "truffleruby " )
90
93
end
91
94
92
95
it "preserve spaces in options" do
You can’t perform that action at this time.
0 commit comments