This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 89
89
run_command "--require ./helper_with_exit.rb"
90
90
} . to raise_error ( SystemExit )
91
91
output = normalize_durations ( last_cmd_stdout )
92
+ # Remove extra line which is only shown on CRuby
93
+ output = output . sub ( "# ./helper_with_exit.rb:1:in `exit'\n " , "" )
94
+
92
95
if defined? ( JRUBY_VERSION ) && !JRUBY_VERSION . empty?
93
96
expect ( output ) . to eq unindent ( <<-EOS )
94
97
95
98
While loading ./helper_with_exit.rb an `exit` / `raise SystemExit` occurred, RSpec will now quit.
96
99
Failure/Error: Unable to find org/jruby/RubyKernel.java to read failed line
97
100
98
- SystemExit:
99
- exit
100
- # ./helper_with_exit.rb:1#{ spec_line_suffix }
101
- EOS
102
- elsif RSpec ::Support ::Ruby . truffleruby?
103
- # No extra ./helper_with_exit.rb:1:in `exit' line on truffleruby, Kernel#exit is defined in Ruby code
104
- expect ( output ) . to eq unindent ( <<-EOS )
105
-
106
- While loading ./helper_with_exit.rb an `exit` / `raise SystemExit` occurred, RSpec will now quit.
107
- Failure/Error: exit 999
108
-
109
101
SystemExit:
110
102
exit
111
103
# ./helper_with_exit.rb:1#{ spec_line_suffix }
118
110
119
111
SystemExit:
120
112
exit
121
- # ./helper_with_exit.rb:1:in `exit'
122
113
# ./helper_with_exit.rb:1#{ spec_line_suffix }
123
114
EOS
124
115
end
You can’t perform that action at this time.
0 commit comments