How to pass javatest.maxOutputSize to make test?

Pavel Rappo pavel.rappo at gmail.com
Thu Oct 2 17:09:29 UTC 2025


Hello,

This has been probably asked multiple times, but I cannot quickly find
anything. I'm running a set of tests as follows:

    make test TEST="test/jdk/java/time/"

If a test fails, sometimes I get this output:

    ...
    Output overflow:
    JT Harness has limited the test output to the text
    at the beginning and the end, so that you can see how the
    test began, and how it completed.

    If you need to see more of the output from the test,
    set the system property javatest.maxOutputSize to a higher
    value. The current value is 100000
    ...

I know there's even an FAQ item [^1] addressing this property. But I
cannot easily see how to translate jtreg syntax to that of `make
test`. Whatever I tried hasn't worked. As a workaround, I added this
to the nearest TEST.properties:

    maxOutputSize=99999999

[^1]: https://openjdk.org/jtreg/faq.html#how-to-set-javatest.maxOutputSize


More information about the build-dev mailing list