Skip to content

Commit 5e5e5c5

Browse files
committed
undefined symbol results in SIGABRT on macOS
1 parent ddb7e8c commit 5e5e5c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/truffle/capi/unimplemented_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

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

0 commit comments

Comments
 (0)