Skip to content

Commit

Permalink
[TESTBUG] Use platform-specific path separator in assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhinkin committed Jun 24, 2024
1 parent ee129a1 commit d72d9b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal class DefaultConfigTests : BaseKotlinGradleTest() {
val projectName = rootProjectDir.name
runner.buildAndFail().apply {
Assertions.assertThat(output).contains(
"Expected file with API declarations 'api/$projectName.api' does not exist."
"Expected file with API declarations 'api${File.separator}$projectName.api' does not exist."
).contains(
"Please ensure that ':apiDump' was executed in order to get an API dump to compare the build against"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ internal class KlibVerificationTests : BaseKotlinGradleTest() {
runner.buildAndFail().apply {
assertTaskFailure(":klibApiExtractForValidation")
Assertions.assertThat(output).contains(
"File with project's API declarations 'api/testproject.klib.api' does not exist."
"File with project's API declarations 'api${File.separator}testproject.klib.api' does not exist."
)
}
}
Expand Down

0 comments on commit d72d9b6

Please sign in to comment.