From a05fd41f1f50af79383d079665245f773695f351 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 6 Dec 2025 18:03:17 +0100 Subject: [PATCH] Reenable truffleruby in CI and omit the 2 failing tests * See https://github.com/ruby/pathname/pull/73 --- .github/workflows/test.yml | 1 - test/pathname/test_pathname.rb | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c58182f..3b9645a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,7 +40,6 @@ jobs: run: bundle install - name: Run test run: rake compile test - continue-on-error: ${{ contains(matrix.ruby, 'truffleruby') }} spec: runs-on: ubuntu-latest diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb index e2d6a09..460aaec 100644 --- a/test/pathname/test_pathname.rb +++ b/test/pathname/test_pathname.rb @@ -491,6 +491,7 @@ def obj.to_str; "a/b"; end end def test_initialize_nul + omit "https://github.com/truffleruby/truffleruby/issues/4047" if RUBY_ENGINE == "truffleruby" assert_raise(ArgumentError) { Pathname.new("a\0") } end @@ -612,6 +613,7 @@ def test_destructive_update end def test_null_character + omit "https://github.com/truffleruby/truffleruby/issues/4047" if RUBY_ENGINE == "truffleruby" assert_raise(ArgumentError) { Pathname.new("\0") } end