Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903445

Failure to execute multiple failing @run test statements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      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

            Unassigned Unassigned
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: