The test JSR166TestCase.java contains multiple @run statements, but only the first one is executed!
(edit: only if the @run fails!)
This is a serious regression, because the test harness is silently failing to execute tests that have been running for years.
$ grep @run < test/jdk/java/util/concurrent/tck/JSR166TestCase.java
* @run junit/othervm/timeout=1000 JSR166TestCase
* @run junit/othervm/timeout=1000 -Djava.security.manager=allow JSR166TestCase
* @run junit/othervm/timeout=1000
* @run junit/othervm/timeout=1000
* @run junit/othervm/timeout=1000
* @run junit/othervm/timeout=1000/policy=tck.policy
$ jtreg -v:all -jdk ~/jdk/jdk21 test/jdk/java/util/concurrent/tck/JSR166TestCase.java |& grep 'REASON:.*run junit'
REASON: User specified action: run junit/othervm/timeout=1000 JSR166TestCase
(edit: only if the @run fails!)
This is a serious regression, because the test harness is silently failing to execute tests that have been running for years.
$ grep @run < test/jdk/java/util/concurrent/tck/JSR166TestCase.java
* @run junit/othervm/timeout=1000 JSR166TestCase
* @run junit/othervm/timeout=1000 -Djava.security.manager=allow JSR166TestCase
* @run junit/othervm/timeout=1000
* @run junit/othervm/timeout=1000
* @run junit/othervm/timeout=1000
* @run junit/othervm/timeout=1000/policy=tck.policy
$ jtreg -v:all -jdk ~/jdk/jdk21 test/jdk/java/util/concurrent/tck/JSR166TestCase.java |& grep 'REASON:.*run junit'
REASON: User specified action: run junit/othervm/timeout=1000 JSR166TestCase
- relates to
-
CODETOOLS-7901914 Failure to find multiple @test in a single file
-
- Resolved
-