Skip to content

Commit

Permalink
undefined symbol results in SIGABRT on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 31, 2023
1 parent ba2bc83 commit 0b336b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/truffle/capi/unimplemented_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

describe "Unimplemented functions in the C-API" do
it "abort the process and show an error including the function name" do
out = ruby_exe('require ARGV[0]; CApiRbTrErrorSpecs.new.not_implemented_function("foo")', args: "#{extension_path} 2>&1", exit_status: 127)
expected_status = platform_is(:darwin) ? :SIGABRT : 127
out = ruby_exe('require ARGV[0]; CApiRbTrErrorSpecs.new.not_implemented_function("foo")', args: "#{extension_path} 2>&1", exit_status: expected_status)
out.should.include?('undefined symbol: rb_str_shared_replace')
end
end

0 comments on commit 0b336b0

Please sign in to comment.