8293811: Provide a reason for PassFailJFrame.forceFail#10269
8293811: Provide a reason for PassFailJFrame.forceFail#10269aivanov-jdk wants to merge 2 commits intoopenjdk:masterfrom
Conversation
Use forceFail(reason) instead of throwing an exception in PrintAllPagesTest. This prevents the test UI from becoming hung when it's run outside of jtreg.
The test frame of 1000×800 doesn't fit the screen when positioned along the instruction frame. The test doesn't depend on it being so large.
|
👋 Welcome back aivanov! A progress list of the required criteria for merging this PR into |
|
@aivanov-jdk The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
LGTM |
honkar-jdk
left a comment
There was a problem hiding this comment.
Addition of reason to force fail test makes it more clear. Changes look good.
|
@aivanov-jdk This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 6 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
That's the only test I know about. jtreg handles it gracefully, so it's not a very big issue. At the same time, we should handle the case where exception is thrown from the code which prepares the test. It is one of problems to be addressed. |
|
/integrate |
|
Going to push as commit 64b96e5.
Your commit was automatically rebased without conflicts. |
|
@aivanov-jdk Pushed as commit 64b96e5. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Add
forceFailimplementation which allows passing the reason why the test is failed.I used the newly added method
forceFail(reason)instead of throwing an exception inPrintAllPagesTest. When the test is run outside of jtreg and printing is cancelled, the the test UI becomes “hung”: clicking Pass or Fail or closing windows does not stop the test.I also converted the
retfield to local variable.In addition to this, I reduced the size of the test frame, its size of 1000×800 doesn't fit even full HD screens when positioned close to the instruction frame.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10269/head:pull/10269$ git checkout pull/10269Update a local copy of the PR:
$ git checkout pull/10269$ git pull https://git.openjdk.org/jdk pull/10269/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10269View PR using the GUI difftool:
$ git pr show -t 10269Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10269.diff