From 8abc80b99422c4c88ce58a6e34100d990bfc318f Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 21 Sep 2023 19:55:25 +0200 Subject: [PATCH] Add truffleruby-head in CI * The latest release does not have this fix: https://github.com/oracle/truffleruby/commit/c77f8bb35db084c99d1f5b14748267866004222e --- .github/workflows/test.yml | 3 +++ test/zlib/test_zlib.rb | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) 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)