Add a switch to destroy runtime only on shutdown (#4482)
This commit is contained in:
committed by
Stanislav Erokhin
parent
37ff2c338e
commit
ee508efb23
@@ -419,8 +419,12 @@ open class KonanDynamicTest : KonanStandaloneTest() {
|
||||
@Input
|
||||
lateinit var cSource: String
|
||||
|
||||
@Input
|
||||
var clangTool = "clang"
|
||||
|
||||
@Input
|
||||
var clangFlags: List<String> = listOf()
|
||||
|
||||
// Replace testlib_api.h and all occurrences of the testlib with the actual name of the test
|
||||
private fun processCSource(): String {
|
||||
val sourceFile = File(cSource)
|
||||
@@ -453,7 +457,7 @@ open class KonanDynamicTest : KonanStandaloneTest() {
|
||||
"-c",
|
||||
"-o", "$executable.o",
|
||||
"-I", artifactsDir
|
||||
)
|
||||
) + clangFlags
|
||||
it.standardOutput = log
|
||||
it.errorOutput = log
|
||||
it.isIgnoreExitValue = true
|
||||
@@ -485,4 +489,4 @@ open class KonanDynamicTest : KonanStandaloneTest() {
|
||||
it.execute()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user