-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8295424: adjust timeout for another JLI GetObjectSizeIntrinsicsTest.java subtest #11278
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,11 +26,14 @@ | |
* @bug 8190312 | ||
* @summary test redirected URLs for -link | ||
* @library /tools/lib ../../lib | ||
* @library /test/lib | ||
* @modules jdk.compiler/com.sun.tools.javac.api | ||
* jdk.compiler/com.sun.tools.javac.main | ||
* jdk.javadoc/jdk.javadoc.internal.api | ||
* jdk.javadoc/jdk.javadoc.internal.tool | ||
* @build toolbox.ToolBox toolbox.JavacTask javadoc.tester.* | ||
* @build jtreg.SkippedException | ||
* @build jdk.test.lib.Platform | ||
* @run main TestRedirectLinks | ||
*/ | ||
|
||
|
@@ -66,12 +69,18 @@ | |
import toolbox.JavacTask; | ||
import toolbox.ToolBox; | ||
|
||
import jdk.test.lib.Platform; | ||
import jtreg.SkippedException; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: the order of imports on 72-73 needs to be swapped. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? 'jdk' comes before 'jtreg' and 'Platform' comes before 'SkippedException'. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mild grumble: langtools tests do not rely on jdk test libraries There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does langtools have its own test libraries that I can use to ask the same questions? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I was not clear.
I thought, you ordered imports by names. Then it is better to keep this order unified. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry I'm still confused. As far as I can see, I've added the imports the And the imports are in sort order: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, copied fragment from a wrong file.
|
||
|
||
public class TestRedirectLinks extends JavadocTester { | ||
/** | ||
* The entry point of the test. | ||
* @param args the array of command line arguments. | ||
*/ | ||
public static void main(String... args) throws Exception { | ||
if (Platform.isSlowDebugBuild()) { | ||
throw new SkippedException("Test is unstable with slowdebug bits"); | ||
} | ||
TestRedirectLinks tester = new TestRedirectLinks(); | ||
tester.runTests(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the idea of skipping the unstable test using SkippedException. Wouldn't be better to add problemlist for slowdebug? So anyone could easy identify test bugs in slowdebug mode. Really it would be better to support bits configurations in standard problem lists like os/arch but it is a separate issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know, the ProblemList does not support bits config so there's no way
to specify an entry for 'release' or 'fastdebug' or 'slowdebug' or...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is needed to make a separate problem list for this and use it in your testing.
The SkippedException and '@requires' are used to filter out the test when it is not applicable for this configuration, not when there is a bug that reproduced only with this configuration. Adding '@requires' usually means that we are not planning to run.
If you want to add them as exception might be it makes sense to add a corresponding comment.