<Swing Dev> Regression test for 8016551 on Linux/Unix
Volker Simonis
volker.simonis at gmail.com
Mon Dec 9 21:49:55 UTC 2013
On Monday, December 9, 2013, Sergey Bylokhov wrote:
> 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?
I use xfce with ubuntu 12.04. I can try different ones tomorrow if you
think it is related to the window manager.
> 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().
OK, I'll try both, adding dispose and replacing realSync by Thread.sleep.
But what about the security exception from the JavaTestSecurityManager
when calling setDefaultCloseOperation on JFrame. Don't you see it? And if
not, what exact version of jtreg/jtharness do you use?
Thank you and best regards,
Volker
>> Thank you and best regards,
>> Volker
>>
>
>
> --
> Best regards, Sergey.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20131209/74035fff/attachment.html>
More information about the swing-dev
mailing list