Skip to content

Fix test_s_glob_3args expectation for TruffleRuby 40 - #119

Merged
hsbt merged 1 commit into
masterfrom
claude/truffleruby-glob-dotmatch-ffde2a
Nov 26, 2026
Merged

hsbt merged 1 commit into
masterfrom
claude/truffleruby-glob-dotmatch-ffde2a

Conversation

@hsbt

@hsbt hsbt commented Nov 26, 2026

Copy link
Copy Markdown
Member

The truffleruby jobs on ubuntu-latest and macos-latest fail on every PR since TruffleRuby 40.0.0 became the default, at test_pathname.rb:1355 with <[., .., f]> expected but was <[., f]>. TruffleRuby 40.0.0 now matches CRuby 3.1+ and returns [".", "f"] for Pathname.glob("*", File::FNM_DOTMATCH, base: dir), while 34.0.1 still returns [".", "..", "f"]. This switches the TruffleRuby expectation on RUBY_ENGINE_VERSION so both keep passing. I ran rake compile test locally on TruffleRuby 40.0.0 and 34.0.1 and on CRuby 4.0.10 and 3.0.7.

Generated with Claude Code

TruffleRuby 40.0.0 matches CRuby 3.1+ and no longer returns ".." from Pathname.glob("*", File::FNM_DOTMATCH), while 34.x still does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hsbt
hsbt merged commit a2c0e19 into master Nov 26, 2026
38 checks passed
@hsbt
hsbt deleted the claude/truffleruby-glob-dotmatch-ffde2a branch November 26, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant