Skip to content

Update CMock for Ruby 4 test runner generation - #1351

Merged
rawalexe merged 1 commit into
FreeRTOS:mainfrom
Old-Ding:codex/ruby4-unity-runner
Jul 10, 2026
Merged

Update CMock for Ruby 4 test runner generation#1351
rawalexe merged 1 commit into
FreeRTOS:mainfrom
Old-Ding:codex/ruby4-unity-runner

Conversation

@Old-Ding

@Old-Ding Old-Ding commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • advance the tools/CMock submodule to the first upstream CMock revision that carries a Ruby 4-compatible Unity test runner generator
  • pulls in Unity's ERB.new(file, trim_mode: '<>') call, avoiding the Ruby 4 arity error reported in [BUG] Unittest code generation failure with Ruby 4 #1347

Fixes #1347.

Validation

  • git diff --check upstream/main...HEAD
  • verified tools/CMock/vendor/unity/auto/generate_test_runner.rb uses ERB.new(file, trim_mode: '<>')

I do not have Ruby installed locally, so I could not run the unit-test generation workflow end to end on this machine.

@Old-Ding
Old-Ding force-pushed the codex/ruby4-unity-runner branch from 1e52cd3 to 086773c Compare July 9, 2026 02:08

@rawalexe rawalexe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Straightforward dependency pin bump to fix Ruby 4 compatibility in test-runner generation; no production/source code affected. Approving — please just confirm manifest.yml's version string and the submodule commit hash correspond to the same CMock release before merge.

Advance CMock to the upstream revision whose Unity runner generator uses Ruby keyword arguments for ERB.new, and update manifest.yml to match the submodule revision so manifest verification passes.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
@rawalexe
rawalexe force-pushed the codex/ruby4-unity-runner branch from 086773c to 6366c22 Compare July 10, 2026 00:32
@rawalexe
rawalexe merged commit 27a9681 into FreeRTOS:main Jul 10, 2026
10 checks passed
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.

[BUG] Unittest code generation failure with Ruby 4

4 participants