Hi, Volker.
On 09.12.2013 22:49, Volker Simonis wrote:
If I run this test standalone or within JTreg with '-othervm' option
on Linux the test displays a frame with the close icon and then it
throws an  sun.awt.SunToolkit$OperationTimedOut() exception because of
the call to SunToolkit.realSync():

Exception in thread "main" sun.awt.SunToolkit$OperationTimedOut: 10001
     at sun.awt.X11.XToolkit.syncNativeQueue(XToolkit.java:2427)
     at sun.awt.SunToolkit.realSync(SunToolkit.java:1501)
     at bug8016551.main(bug8016551.java:40)
What's a bug. This code should not fail. What window manager did you use?
Within JTreg, this of course makes the test fail.
Sure, because a test throw an exception. I guess it will pass, if you change SunToolkit.realSync() to the Thread.sleep() for example.
If running
standalone, the frame will be still displayed until I close the
window.


So I wonder how this test is supposed to work? Who will actually close
the created frame? Or is this supposed to be a manual test?
It should be closed by the jtreg, if main() method is ended without exception. It will be good to add a dispose at the end of the test, but anyway the problem here is in realSync().

Thank you and best regards,
Volker


--
Best regards, Sergey.

Reply via email to