<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
So your real complaint isn't the failure itself, but that jtreg
bothers<br>
to check directories you aren't even running tests from, and<br>
that is a time tax whether such clashes exist or not ?<br>
Seems a reasonable point ... if I'm running a single Image I/O test<br>
jtreg still finds the java/awt clash and that can't be "free".<br>
<br>
jtreg javax/imageio/stream/StreamCloserLeak/<br>
Directory "JTwork" not found: creating<br>
Directory "JTreport" not found: creating<br>
Test results: passed: 1<br>
Error: Test clashes with another test with a similar name:<br>
/home/prrace/dev/jdk/test/java/awt/Focus/DisposedWindow/DisposeDialogNotActivateOwnerTest/DisposeDialogNotActivateOwnerTest.java<br>
/home/prrace/dev/jdk/test/java/awt/Focus/DisposedWindow/DisposeDialogNotActivateOwnerTest/DisposeDialogNotActivateOwnerTest.html<br>
<br>
-phil.<br>
<br>
<div class="moz-cite-prefix">On 11/23/2016 01:19 PM, Martin Buchholz
wrote:<br>
</div>
<blockquote
cite="mid:CA+kOe0_sgC_X=dJcfzk1VdFc6po5jLR4LnXey3K6PnaQ6gXTcA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Jonathan: Here's a small jtreg feature request:</div>
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
<div><br>
</div>
<div> jtreg MyTest.java </div>
<div><br>
</div>
<div>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.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Nov 23, 2016 at 12:57 PM,
Jonathan Gibbons <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:jonathan.gibbons@oracle.com" target="_blank">jonathan.gibbons@oracle.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb">
<div class="h5"><br>
<br>
On 11/23/2016 12:47 PM, Martin Buchholz wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Am I the only one seeing jtreg test failures in latest
jdk9/dev, apparently due to<br>
<br>
<a moz-do-not-send="true"
href="https://bugs.openjdk.java.net/browse/JDK-8160766"
rel="noreferrer" target="_blank">https://bugs.openjdk.java.net/<wbr>browse/JDK-8160766</a><br>
<br>
Error: Test clashes with another test with a similar
name:<br>
.../jdk/test/java/awt/Focus/Di<wbr>sposedWindow/DisposeDialogNotA<wbr>ctivateOwnerTest/DisposeDialog<wbr>NotActivateOwnerTest.java<br>
.../jdk/test/java/awt/Focus/D<wbr>isposedWindow/DisposeDialogNot<wbr>ActivateOwnerTest/DisposeDialo<wbr>gNotActivateOwnerTest.html<br>
<br>
(even though I'm not actually running any of the awt
tests?)<br>
</blockquote>
<br>
<br>
</div>
</div>
Martin,<br>
<br>
It looks like this is a test bug, introduced in this
changeset.<br>
<br>
changeset: 16112:88faebbdbf9b<br>
user: arapte<br>
date: Fri Nov 04 21:55:19 2016 +0530<br>
summary: 8160766: [TEST_BUG]
java/awt/Focus/DisposedWindow<br>
<br>
<br>
The problem edit looks like this:<br>
<br>
<br>
/*<br>
- test<br>
- @bug 6386592<br>
- @summary Tests that disposing a dialog doesn't activate
its invisible owner.<br>
- @author <a moz-do-not-send="true"
href="mailto:anton.tarasov@sun.com" target="_blank">anton.tarasov@sun.com</a>:
area=awt.focus<br>
- @run applet DisposeDialogNotActivateOwnerT<wbr>est.html<br>
+ @test<br>
+ @key headful<br>
+ @bug 6386592 8160766<br>
+ @summary Tests that disposing a dialog doesn't activate
its invisible owner.<br>
*/<br>
<br>
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.<br>
<br>
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.<br>
<br>
-- Jon<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>