gradle-plugin, tests: Fix useInterop test for Windows
This commit is contained in:
+4
-7
@@ -73,16 +73,13 @@ class TaskSpecification extends BaseKonanSpecification {
|
|||||||
result.task(":printArgs") != null
|
result.task(":printArgs") != null
|
||||||
result.task(":printArgs").outcome == TaskOutcome.SUCCESS
|
result.task(":printArgs").outcome == TaskOutcome.SUCCESS
|
||||||
def expectedKlibPath = project.konanBuildDir.toPath()
|
def expectedKlibPath = project.konanBuildDir.toPath()
|
||||||
.resolve("interopCompiledStubs/stdioInteropStubs/stdioInteropStubs.klib")
|
.resolve("interopCompiledStubs${File.separator}stdioInteropStubs${File.separator}stdioInteropStubs.klib")
|
||||||
.toFile().canonicalPath
|
.toFile().canonicalPath
|
||||||
def expectedBcPath = project.konanBuildDir.toPath()
|
def expectedBcPath = project.konanBuildDir.toPath()
|
||||||
.resolve("nativelibs/genStdioInteropStubs/stdiostubs.bc")
|
.resolve("nativelibs${File.separator}genStdioInteropStubs${File.separator}stdiostubs.bc")
|
||||||
.toFile().canonicalPath
|
.toFile().canonicalPath
|
||||||
result.output.contains("""
|
def ls = System.lineSeparator()
|
||||||
[-lpthread]
|
result.output.contains("[-lpthread]$ls[$expectedKlibPath]$ls[$expectedBcPath]".stripIndent().trim())
|
||||||
[$expectedKlibPath]
|
|
||||||
[$expectedBcPath]
|
|
||||||
""".stripIndent().trim())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user