This is an automated email from the ASF dual-hosted git repository. borinquenkid pushed a commit to branch test/file-system-interaction-spec-windows-7.0.x in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 942d7ff6e0fd8822d20460fb5820667ee0e547ed Author: Walter Duque de Estrada <[email protected]> AuthorDate: Sun Oct 18 09:38:30 2026 -0400 Compare projectPath against an OS-specific path in FileSystemInteractionImplSpec The feature method added in 81e4dc8373 asserts projectPath(missing) == 'nested/missing.txt', but projectPath returns the canonical path relative to the base directory with the platform separator, so every Windows job fails it with nested\missing.txt. Compare against new File('nested', 'missing.txt').path instead, in both copies of the spec. Co-Authored-By: Claude Fable 5.1 <[email protected]> --- .../groovy/grails/dev/commands/io/FileSystemInteractionImplSpec.groovy | 2 +- .../grails/cli/profile/commands/io/FileSystemInteractionImplSpec.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grails-core/src/test/groovy/grails/dev/commands/io/FileSystemInteractionImplSpec.groovy b/grails-core/src/test/groovy/grails/dev/commands/io/FileSystemInteractionImplSpec.groovy index ddd22a28f0..ee51562614 100644 --- a/grails-core/src/test/groovy/grails/dev/commands/io/FileSystemInteractionImplSpec.groovy +++ b/grails-core/src/test/groovy/grails/dev/commands/io/FileSystemInteractionImplSpec.groovy @@ -66,7 +66,7 @@ class FileSystemInteractionImplSpec extends Specification { } then: - interaction.projectPath(missing) == 'nested/missing.txt' + interaction.projectPath(missing) == new File('nested', 'missing.txt').path interaction.projectPath('missing.txt') == 'missing.txt' !interaction.resource(missing).exists() pendingInteraction.file('build.gradle') == new File(pending, 'build.gradle') diff --git a/grails-shell-cli/src/test/groovy/org/grails/cli/profile/commands/io/FileSystemInteractionImplSpec.groovy b/grails-shell-cli/src/test/groovy/org/grails/cli/profile/commands/io/FileSystemInteractionImplSpec.groovy index c7acbb161d..ff750fc122 100644 --- a/grails-shell-cli/src/test/groovy/org/grails/cli/profile/commands/io/FileSystemInteractionImplSpec.groovy +++ b/grails-shell-cli/src/test/groovy/org/grails/cli/profile/commands/io/FileSystemInteractionImplSpec.groovy @@ -80,7 +80,7 @@ class FileSystemInteractionImplSpec extends Specification { } then: - interaction.projectPath(missing) == 'nested/missing.txt' + interaction.projectPath(missing) == new File('nested', 'missing.txt').path interaction.projectPath('missing.txt') == 'missing.txt' !interaction.resource(missing).exists() pendingInteraction.file('build.gradle') == new File(pending, 'build.gradle')
