Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 20c04d0

Browse files
committed
Adapt exit spec's expected output for TruffleRuby
1 parent 2ba1b65 commit 20c04d0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

spec/integration/spec_file_load_errors_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,17 @@
9595
While loading ./helper_with_exit.rb an `exit` / `raise SystemExit` occurred, RSpec will now quit.
9696
Failure/Error: Unable to find org/jruby/RubyKernel.java to read failed line
9797
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+
98109
SystemExit:
99110
exit
100111
# ./helper_with_exit.rb:1#{spec_line_suffix}

0 commit comments

Comments
 (0)