[K/N][tests] Fixed a test for KT-55938
Used in the test cache directory should be prepared before the test
This commit is contained in:
@@ -5236,10 +5236,16 @@ if (PlatformInfo.isAppleTarget(project)) {
|
|||||||
"-Werror" // to forbid retry with auto-cache disabled
|
"-Werror" // to forbid retry with auto-cache disabled
|
||||||
]
|
]
|
||||||
|
|
||||||
|
UtilsKt.findKonanBuildTask(project, "objc_kt55938", target).configure {
|
||||||
|
it.doFirst {
|
||||||
|
def cacheDir = new File("$testOutputRoot/local/interop_objc_kt55938/cache")
|
||||||
|
cacheDir.deleteDir()
|
||||||
|
mkdir(cacheDir)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
doBeforeBuild {
|
doBeforeBuild {
|
||||||
mkdir(buildDir)
|
mkdir(buildDir)
|
||||||
def cacheDir = new File("-Xauto-cache-dir=$testOutputRoot/local/interop_objc_kt55938/cache")
|
|
||||||
cacheDir.deleteDir()
|
|
||||||
project.extensions.execClang.execClangForCompilerTests(project.target) {
|
project.extensions.execClang.execClangForCompilerTests(project.target) {
|
||||||
args "$projectDir/interop/objc/kt55938/objclib.m"
|
args "$projectDir/interop/objc/kt55938/objclib.m"
|
||||||
args "-lobjc", '-fobjc-arc'
|
args "-lobjc", '-fobjc-arc'
|
||||||
|
|||||||
Reference in New Issue
Block a user