On 25-Jun-08, at 9:54 AM, Somesh Sasalatti wrote:

> Hi Ketan,
> if I have  a testmethod and call UIThreadRUnnable within that, and  
> do a bunch of stuff in the run method, what happens if an exception  
> is generated in the run(). is there a way of propogating it back to  
> the testmethod?
> there isn't one now. but is that cos we're talking about 2 different  
> threads here?

I think there should be a way to do that. The existing mechanism  
passes a value back through an array, it should be possible to do the  
same by catching a generated exception in the UI thread and return it  
via another array, and check the exception in the UI thread.

This approach will only work for sync exec. I'm not sure what'd be the  
right answer for asyncExec.

Would you be willing to file a patch ?

  -- Ketan


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to