Using @compile/fail/ref=<file>, jtreg will compare the output from the action to the content in the specified file.
However, the comparison will fail if the runtime generates additional messages to the output streams, such as when using env variables like JAVA_TOOL_OPTIONS or _JAVA_OPTIONS.
This could be addressed by being able to filter out any unexpected lines, such as by specifying regular expressions to identify the lines to be ignored.
However, the comparison will fail if the runtime generates additional messages to the output streams, such as when using env variables like JAVA_TOOL_OPTIONS or _JAVA_OPTIONS.
This could be addressed by being able to filter out any unexpected lines, such as by specifying regular expressions to identify the lines to be ignored.
- relates to
-
JDK-8219323 Using env of JAVA_TOOL_OPTIONS and _JAVA_OPTIONS causing some jtreg test failures
-
- New
-