forked from Kotlin/kotlinx.coroutines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lincheck to 2.5.3 and re-write the corresponding tests
- Loading branch information
Showing
15 changed files
with
342 additions
and
515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
kotlinx-coroutines-core/jvm/test/LCStressOptionsDefault.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
package kotlinx.coroutines | ||
|
||
import org.jetbrains.kotlinx.lincheck.* | ||
import org.jetbrains.kotlinx.lincheck.strategy.stress.* | ||
import kotlin.reflect.* | ||
|
||
class LCStressOptionsDefault : StressOptions() { | ||
init { | ||
iterations(100 * stressTestMultiplierCbrt) | ||
invocationsPerIteration(1000 * stressTestMultiplierCbrt) | ||
actorsBefore(if (isStressTest) 3 else 0) | ||
threads(3) | ||
actorsPerThread(if (isStressTest) 3 else 2) | ||
} | ||
} | ||
|
||
fun Options<*,*>.check(testClass: KClass<*>) = LinChecker.check(testClass.java, this) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
kotlinx-coroutines-core/jvm/test/internal/SegmentQueueLCStressTest.kt
This file was deleted.
Oops, something went wrong.
82 changes: 0 additions & 82 deletions
82
kotlinx-coroutines-core/jvm/test/linearizability/ChannelCloseLCStressTest.kt
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
kotlinx-coroutines-core/jvm/test/linearizability/ChannelIsClosedLCStressTest.kt
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
kotlinx-coroutines-core/jvm/test/linearizability/ChannelLCStressTest.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.