GNOME Bugzilla – Bug 586291
Subsequent tests fail when first one registers callback handlers
Last modified: 2009-07-29 01:12:50 UTC
When there are two test scripts both of which register a callback on window creation for the same window title, and both scripts are run via ldtprunner using a corresponding XML file, then the registration of the callback in the second script causes an error, and the test fails therefore. Traceback (most recent call last):
+ Trace 216072
execfile (scriptName, scriptglobal)
onwindowcreate('Foobar', 'error_cb')
_callbackFunctions [windowTitle][1].exit ()
Thanks for the bug report. Can you please upload a test script to verify this scenario ? Thanks
Created attachment 136940 [details] First test script
Created attachment 136941 [details] Second test script
Created attachment 136942 [details] XML file to run using ldtprunner Put all the three files into the same directory and run test.xml via ldtprunner to reproduce the problem.
Created attachment 139330 [details] [review] Try with this patch Please let me know, this patch fixes the issue ? Apologize for the long delay in responding to this bug :) Thanks
Armin, would this fix any particular problem with our ldtp test scripts in Glom?
Nagappan: Yes, it seems to fix the problem. Thanks. Murray: No, glom does not use onwindowcreate anymore. We could give it another try now, as it might be better than polling via guiexist(). We would then have to find a way to properly communicate with the mean thread from the callback, I guess.
Based on the last comment marking this bug as resolved fixed. Thanks for the bug report.