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

jtharness: Provide ability to set the maxOutputSize for a test

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      Right now, the max output size for a section in a .jtr file is determined by a system property javatest.maxOutputSize. It is cached up front, and cannot be changed.

      It would be nice to be able to override this on a per-test basis, for example, by providing a method TestResult.setMaxOutputSize(int size).

      jtreg already has a mechanism to specify properties on groups of tests (TEST.properties) and could conceivably provide a mechanism on a per-section basis (e.g. @run main/maxOutputSize=1M) but right now, jtreg has no way to set such a value in TestResult.

      I suspect it is good enough to be able to set the value for the TestResult as a whole (and not per TestResult.Section.)

            afedorch Alexey Fedorchenko (Inactive)
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: