Actually, jtreg is (has always been) optimised to *run* tests
efficiently, with no time tax.
But yes, there is a time tax, which comes from writing the report at the
end of the test run, and that is actually where the clash is (probably)
being detected.
And, my guess is that a developer running "jtreg MyTest.java" doesn't
need/want/care about the report. If so, there are two ways to disable
the report:
1. Options: -noreport (or -nr for short)
2. System property: javatest.noReportRequired
-- Jon
On 11/23/2016 01:19 PM, Martin Buchholz wrote:
Jonathan: Here's a small jtreg feature request:
It's nice for release engineers to have jtreg check the whole test/
tree for correct test definitions. But for developers who are just doing
jtreg MyTest.java
they're not interested in awt failures, and don't want to pay the
10-second tax to check every test definition for every jtreg invocation.
On Wed, Nov 23, 2016 at 12:57 PM, Jonathan Gibbons
<jonathan.gibb...@oracle.com <mailto:jonathan.gibb...@oracle.com>> wrote:
On 11/23/2016 12:47 PM, Martin Buchholz wrote:
Am I the only one seeing jtreg test failures in latest
jdk9/dev, apparently due to
https://bugs.openjdk.java.net/browse/JDK-8160766
<https://bugs.openjdk.java.net/browse/JDK-8160766>
Error: Test clashes with another test with a similar name:
.../jdk/test/java/awt/Focus/DisposedWindow/DisposeDialogNotActivateOwnerTest/DisposeDialogNotActivateOwnerTest.java
.../jdk/test/java/awt/Focus/DisposedWindow/DisposeDialogNotActivateOwnerTest/DisposeDialogNotActivateOwnerTest.html
(even though I'm not actually running any of the awt tests?)
Martin,
It looks like this is a test bug, introduced in this changeset.
changeset: 16112:88faebbdbf9b
user: arapte
date: Fri Nov 04 21:55:19 2016 +0530
summary: 8160766: [TEST_BUG] java/awt/Focus/DisposedWindow
The problem edit looks like this:
/*
- test
- @bug 6386592
- @summary Tests that disposing a dialog doesn't activate its
invisible owner.
- @author anton.tara...@sun.com <mailto:anton.tara...@sun.com>:
area=awt.focus
- @run applet DisposeDialogNotActivateOwnerTest.html
+ @test
+ @key headful
+ @bug 6386592 8160766
+ @summary Tests that disposing a dialog doesn't activate its
invisible owner.
*/
Note that plain "test" was edited to "@test", meaning that the
file previously was not a standalone jtreg test, and it was
changed to be one. This causes a clash with an HTML test of the
same base name.
jtreg correctly reports the clash, because both tests would lead
to the same .jtr file. i.e. you can't have two tests that only
differ in their filename extension.
-- Jon