[Native][tests] Forbid using thread state checker with cache
This commit is contained in:
+8
-1
@@ -143,13 +143,20 @@ private object NativeTestSupport {
|
|||||||
val hostManager = HostManager(distribution = Distribution(nativeHome.dir.path), experimental = false)
|
val hostManager = HostManager(distribution = Distribution(nativeHome.dir.path), experimental = false)
|
||||||
val nativeTargets = computeNativeTargets(enforcedProperties, hostManager)
|
val nativeTargets = computeNativeTargets(enforcedProperties, hostManager)
|
||||||
|
|
||||||
|
val cacheMode = computeCacheMode(enforcedProperties, nativeHome, nativeTargets, optimizationMode)
|
||||||
|
if (cacheMode != CacheMode.WithoutCache) {
|
||||||
|
assertEquals(ThreadStateChecker.DISABLED, threadStateChecker) {
|
||||||
|
"Thread state checker can not be used with cache"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
output += optimizationMode
|
output += optimizationMode
|
||||||
output += memoryModel
|
output += memoryModel
|
||||||
output += threadStateChecker
|
output += threadStateChecker
|
||||||
output += gcType
|
output += gcType
|
||||||
output += gcScheduler
|
output += gcScheduler
|
||||||
output += nativeTargets
|
output += nativeTargets
|
||||||
output += CacheMode::class to computeCacheMode(enforcedProperties, nativeHome, nativeTargets, optimizationMode)
|
output += CacheMode::class to cacheMode
|
||||||
output += computeTestMode(enforcedProperties)
|
output += computeTestMode(enforcedProperties)
|
||||||
output += computeTimeouts(enforcedProperties)
|
output += computeTimeouts(enforcedProperties)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user