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

Enforce @compile/<pass|fail> for compile-only test, make test results Error if test has @compile or @build but no @run tag

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • jtreg4.2
    • tools
    • None

      Shorthand Equivalent
      @build <classname>+ @run build <classname>+
      @compile<option>* <arg>+ @run compile<option>* <arg>+

      Though these shorthands are in tag-spec, it might be better to force "pass" or "fail" for compile-only test -
      @compile/pass<option>* <arg>+
      @compile/fail<option>* <arg>+

      And for @compile (without /pass nor /fail) test, if test has no explicit @run tag, make test results "Error" to avoid "test does not run because @run tag is missed", such as JDK-8176182, JDK-8176185, JDK-8176162, JDK-8176161, JDK-8176187, JDK-8176191

      Same for test with @build but no explicit @run tag.



            Unassigned Unassigned
            amlu Amy Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: