[jbosstools-dev] Re: VPE JUnit tests on Linux

Max Areshkau mareshkau at exadel.com
Mon Apr 7 14:38:27 EDT 2008


Max Rydahl Andersen wrote:
> Is that something we can workaround or does it require a rebuild of eclipse ?
>
> /max
>
>   
>> Hi,
>>
>> I believe that I fixed the Eclipse crash that happens while executing
>> JUnit tests on Linux.
>> The fix is described in
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=207206#c8.
>> I have tested our Junit tests and the test case described in the bug.
>>
>> Snjeza
>>
>>
>>     
>
>
>
>   
I have trying to find workaround for JUnit tests failing and looks like 
problem is in method display.readAndDispatch()
which called in TestUtil.delay(long waitTimeMillis);
I have trying to remove this code from method and eclipse doesn't 
crashes anymore.
Here original code:
/            while (System.currentTimeMillis() < endTimeMillis) {
                if (!display.readAndDispatch())
                    display.sleep();
            }/
With this code VPE tests works under linux.x86_32:
/            while (System.currentTimeMillis() < endTimeMillis) {
           //     if (!display.readAndDispatch()) here we can apply 
filter which will be restrict this code only linux
                    display.sleep();
            }
/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbosstools-dev/attachments/20080407/2f683608/attachment.html 


More information about the jbosstools-dev mailing list