Skip to content

Commit

Permalink
fixes after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Moiseenko <[email protected]>
  • Loading branch information
eupp committed Apr 24, 2023
1 parent a8f4231 commit 83233a3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/jvm/main/org/jetbrains/kotlinx/lincheck/LinChecker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class LinChecker(private val testClass: Class<*>, options: Options<*, *>?) {
if (failure != null) {
val minimizedFailedIteration = if (minimizeFailedScenario)
failure.minimize(reporter) {
it.run(this, createVerifier(checkStateEquivalence = false))
it.run(this, createVerifier())
}
else
failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ internal class LincheckOptionsImpl : LincheckOptions {
minOperations = DEFAULT_MIN_OPERATIONS,
maxOperations = maxOperationsInThread,
generateBeforeAndAfterParts = generateBeforeAndAfterParts,
scenarioGenerator = RandomExecutionGenerator(testStructure)
scenarioGenerator = RandomExecutionGenerator(testStructure, testStructure.randomProvider)
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ class StressCTestConfiguration(
timeoutMs = timeoutMs,
customScenarios = customScenarios
) {
override fun createStrategy(testClass: Class<*>, scenario: ExecutionScenario, validationFunctions: List<Method>,
stateRepresentationMethod: Method?, verifier: Verifier, invocationPlanner: InvocationPlanner): Strategy =
StressStrategy(this, testClass, scenario, validationFunctions, stateRepresentationMethod, verifier, invocationPlanner)
override fun createStrategy(testClass: Class<*>, scenario: ExecutionScenario,
validationFunctions: List<Method>, stateRepresentationMethod: Method?): Strategy =
StressStrategy(testClass, scenario, validationFunctions, stateRepresentationMethod, timeoutMs)

companion object {
const val DEFAULT_INVOCATIONS = 10000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>
*/
@file:Suppress("DEPRECATION_ERROR", "DEPRECATION")

package org.jetbrains.kotlinx.lincheck.test.generator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,6 @@ class OnlyExtraSuspensionsHaveToBeAtomicTest : AbstractLincheckTest() {
if (c == 6) return
suspendCancellableCoroutine<Unit> { }
}
<<<<<<< HEAD

override fun <O : Options<O, *>> O.customize() {
iterations(10)
actorsBefore(0)
threads(2)
actorsPerThread(3)
actorsAfter(0)
}
=======
>>>>>>> LincheckOptions
}

class CounterSequential : VerifierState() {
Expand Down

0 comments on commit 83233a3

Please sign in to comment.