diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b4b3d1..8d8d42c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,6 +7,7 @@ jobs: uses: ruby/actions/.github/workflows/ruby_versions.yml@master with: engine: cruby + versions: '["truffleruby-head"]' min_version: 2.7 build: @@ -24,6 +25,8 @@ jobs: exclude: - ruby: head os: windows-latest + - ruby: truffleruby-head + os: windows-latest runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 464141f..779c583 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -506,6 +506,7 @@ def test_set_dictionary end def test_multithread_deflate + pend 'hangs' if RUBY_ENGINE == 'truffleruby' zd = Zlib::Deflate.new s = "x" * 10000 @@ -522,6 +523,7 @@ def test_multithread_deflate end def test_multithread_inflate + pend 'hangs' if RUBY_ENGINE == 'truffleruby' zi = Zlib::Inflate.new s = Zlib.deflate("x" * 10000) @@ -792,7 +794,7 @@ def test_path } end - if defined? File::TMPFILE + if defined?(File::TMPFILE) and RUBY_ENGINE != 'truffleruby' def test_path_tmpfile sio = StringIO.new("".dup, 'w') gz = Zlib::GzipWriter.new(sio)