jpackage: Tighten up output validation in tests

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • 27
    • Affects Version/s: 27
    • Component/s: tools
    • None
    • generic
    • generic

      Tighten up output validation in tests in preparation for JDK-8374839.

      Currently, tests don't validate if jpackage writes to stdout or stderr; they validate the combined output.

      JDK-8374839 will be a major change to how jpackage writes to the console. It will write the same messages for the same error conditions, but using a different API. To avoid regressions, we need to make tests less tolerant to deviations in console output.

      Tests, ErrorTest in particular, should validate the contents of the stdout and stderr streams produced by jpackage separately.

      When applicable, tests should validate that jpackage produces nothing but expected output in the console, i.e. use "match" and not "find" logic when examining the output.

            Assignee:
            Alexey Semenyuk
            Reporter:
            Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: