mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
Use $(PATH_SEPARATOR) for test-syntax-suggest -I on mswin
The recipe moved into common.mk kept the literal `-Ispec/syntax_suggest:spec/lib` from template/Makefile.in. On Windows Ruby treats `:` as an invalid path separator (the drive-letter delimiter), so spec_helper fails to load and the mswin run errors out instead of running the SyntaxSuggest spec. Use $(PATH_SEPARATOR) (`;` on mswin, `:` on Unix), matching RAKER just below, so the single recipe works for both builds. Verified 170 examples, 0 failures on the VS 2022 mswin build and the msys2 UCRT64 GNU make build. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
ef4626e5b9
commit
3c7a4c174f
1 file changed
+1
-1
Notes:
git
2026-06-27 08:43:44 +00:00
@@ -1667,7 +1667,7 @@ PREPARE_SYNTAX_SUGGEST = $(TEST_RUNNABLE)-test-syntax-suggest-prepare
|
||||
test-syntax-suggest: $(TEST_RUNNABLE)-test-syntax-suggest
|
||||
yes-test-syntax-suggest: $(PREPARE_SYNTAX_SUGGEST)
|
||||
$(ACTIONS_GROUP)
|
||||
$(XRUBY) -C $(srcdir) -Ispec/syntax_suggest:spec/lib .bundle/bin/rspec \
|
||||
$(XRUBY) -C $(srcdir) -Ispec/syntax_suggest$(PATH_SEPARATOR)spec/lib .bundle/bin/rspec \
|
||||
--require rspec/expectations \
|
||||
--require spec_helper --require formatter_overrides --require spec_coverage \
|
||||
$(RSPECOPTS) spec/syntax_suggest/$(SYNTAX_SUGGEST_SPECS)
|
||||
|
||||
Reference in new issue
Block a user