Skip to content

Commit d72d9b6

Browse files
committed
[TESTBUG] Use platform-specific path separator in assertions
1 parent ee129a1 commit d72d9b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/functionalTest/kotlin/kotlinx/validation/test/DefaultConfigTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal class DefaultConfigTests : BaseKotlinGradleTest() {
2929
val projectName = rootProjectDir.name
3030
runner.buildAndFail().apply {
3131
Assertions.assertThat(output).contains(
32-
"Expected file with API declarations 'api/$projectName.api' does not exist."
32+
"Expected file with API declarations 'api${File.separator}$projectName.api' does not exist."
3333
).contains(
3434
"Please ensure that ':apiDump' was executed in order to get an API dump to compare the build against"
3535
)

src/functionalTest/kotlin/kotlinx/validation/test/KlibVerificationTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ internal class KlibVerificationTests : BaseKotlinGradleTest() {
744744
runner.buildAndFail().apply {
745745
assertTaskFailure(":klibApiExtractForValidation")
746746
Assertions.assertThat(output).contains(
747-
"File with project's API declarations 'api/testproject.klib.api' does not exist."
747+
"File with project's API declarations 'api${File.separator}testproject.klib.api' does not exist."
748748
)
749749
}
750750
}

0 commit comments

Comments
 (0)