Closed you-n-g closed 3 years ago
And then, I installed kotlinc
and tried following command.
ConcurrentQueueTest.kt
's content is same as https://github.com/Kotlin/kotlinx-lincheck#test-example
kotlinc -cp ../build/libs/lincheck-jvm-2.14.1.jar ConcurrentQueueTest.kt
However, it doesn't work.
Please use the jvmTest
task for this purpose, e.g.
./gradlew jvmTest --tests HashMapTest
@ndkoval Thanks so much for your reply.
@ndkoval I follow your guidance and run the examples successfully. May I ask how to get output like this example? https://github.com/Kotlin/kotlinx-lincheck#example
Thanks!
@you-n-g Our internal tests are to test lincheck, not the data structures, so expected failures are just suppressed. If you run lincheck via
LinChecker.check(HashMapLinearizabilityTest.class);
as in the example, you'll get the output
@alefedor Thanks so much!
Thanks for your previous kind reply, I've successfully run
./gradlew build
Now I want to run the test ConcurrentLinkedQueueTest.
I've tried the following commands. However, all of them failed
Could you give me any hint that how to run a single test? Thanks