Sha256: 234ef8187baeba091020af2f7e56b89ff974efdf6a148f8455f0b8585fd89a0a

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 Bytes

Contents

$:.unshift File.expand_path('../../lib', __FILE__)
require 'stackprof'
require 'minitest/autorun'

if RUBY_ENGINE == 'truffleruby'
  class StackProfTruffleRubyTest < MiniTest::Test
    def test_error
      error = assert_raises RuntimeError do
        StackProf.run(mode: :cpu) do
          unreacheable
        end
      end

      assert_match(/TruffleRuby/, error.message)
      assert_match(/--cpusampler/, error.message)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stackprof-0.2.25 test/test_truffleruby.rb
stackprof-0.2.24 test/test_truffleruby.rb
stackprof-0.2.23 test/test_truffleruby.rb
stackprof-0.2.22 test/test_truffleruby.rb
stackprof-0.2.21 test/test_truffleruby.rb