-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Libtest tests fixed #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please, take a look at the related review comments in Managed strategies #5.
- It would be better to know failure reasons and use them instead of
shouldFail=true
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning up the libtest
module!
-
See the comments.
-
Let's do not use the introduced
Either
primitive, and I would suggest specifying the resulting types explicitly. We have already discussed the details.
libtest/src/main/java/org/jetbrains/kotlinx/lincheck/tests/custom/counter/Counters.kt
Outdated
Show resolved
Hide resolved
libtest/src/main/java/org/jetbrains/kotlinx/lincheck/tests/custom/transfer/Accounts.java
Outdated
Show resolved
Hide resolved
libtest/src/test/java/org/jetbrains/kotlinx/lincheck/AnalyzeAccessor.kt
Outdated
Show resolved
Hide resolved
libtest/src/test/java/org/jetbrains/kotlinx/lincheck/tests/AbstractLinCheckTest.kt
Outdated
Show resolved
Hide resolved
libtest/src/test/java/org/jetbrains/kotlinx/lincheck/tests/LockFreeDequeTest.kt
Outdated
Show resolved
Hide resolved
lincheck/src/main/java/org/jetbrains/kotlinx/lincheck/TestReport.kt
Outdated
Show resolved
Hide resolved
lincheck/src/main/java/org/jetbrains/kotlinx/lincheck/TestReport.kt
Outdated
Show resolved
Hide resolved
lincheck/src/main/java/org/jetbrains/kotlinx/lincheck/TestReport.kt
Outdated
Show resolved
Hide resolved
lincheck/src/test/java/org/jetbrains/kotlinx/lincheck/test/AlmostEmptyScenarioTest.kt
Outdated
Show resolved
Hide resolved
lincheck/src/main/java/org/jetbrains/kotlinx/lincheck/strategy/ManagedStrategy.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- See the comments
- Rebase onto develop
- Tests should not fail
libtest/src/test/java/org/jetbrains/kotlinx/lincheck/tests/custom/deadlock/DeadLockTest.kt
Outdated
Show resolved
Hide resolved
...src/main/java/org/jetbrains/kotlinx/lincheck/strategy/randomswitch/RandomSwitchStrategy.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/jetbrains/kotlinx/lincheck/strategy/randomswitch/RandomSwitchStrategy.java
Outdated
Show resolved
Hide resolved
...st/java/org/jetbrains/kotlinx/lincheck/test/runner/ParallelThreadsRunnerEasyExceptionTest.kt
Outdated
Show resolved
Hide resolved
lincheck/src/main/java/org/jetbrains/kotlinx/lincheck/strategy/IterationResult.kt
Outdated
Show resolved
Hide resolved
lincheck/src/main/java/org/jetbrains/kotlinx/lincheck/strategy/IterationResult.kt
Outdated
Show resolved
Hide resolved
lincheck/src/main/java/org/jetbrains/kotlinx/lincheck/strategy/Strategy.java
Outdated
Show resolved
Hide resolved
lincheck/src/main/java/org/jetbrains/kotlinx/lincheck/LinChecker.java
Outdated
Show resolved
Hide resolved
libtest/src/test/java/org/jetbrains/kotlinx/lincheck/tests/AbstractLinCheckTest.kt
Outdated
Show resolved
Hide resolved
libtest/src/test/java/org/jetbrains/kotlinx/lincheck/AnalyzeAccessor.kt
Outdated
Show resolved
Hide resolved
8dad43d
to
1da1802
Compare
e5af238
to
688b829
Compare
* Remove `libtest` module but keep some of the tests from it * Make the project a single-module one * Add `AbstractLincheckTest` abstraction to manage most of the tests in a single place and write them easier * Rewrite some of the code into Kotlin * Reuse verifiers properly * Handle deadlocks/livelocks and unexpected exceptions properly * etc
The changes were moved to #35, thanks for the cleaning up the code! |
Fixed a problem with not all tests being executed.
Improved tests.
Added
AbstractLinCheckTest
for testing all LinCheck strategies