free_mutant/spec/support/rb_bug.rb
2018-09-12 13:15:43 +00:00

18 lines
290 B
Ruby

# frozen_string_literal: true
require 'ffi'
# @api private
module RbBug
extend FFI::Library
ffi_lib 'ruby'
attach_function :rb_bug, %i[string varargs], :void
# Call the test bug
#
# @return [undefined]
def self.call
rb_bug('%s', :string, 'test bug')
end
end # RbBug