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 < [email protected]> 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 >> >> Error: Test clashes with another test with a similar name: >> .../jdk/test/java/awt/Focus/DisposedWindow/DisposeDialogNotA >> ctivateOwnerTest/DisposeDialogNotActivateOwnerTest.java >> .../jdk/test/java/awt/Focus/DisposedWindow/DisposeDialogNot >> ActivateOwnerTest/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 [email protected]: 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 >
