GNOME Bugzilla – Bug 342240
the return value of func windowexists was incorrect.
Last modified: 2006-05-19 00:19:12 UTC
Please describe the problem: invoke the func windowexists (param). it returns 1 always even given any string. gui Steps to reproduce: 1. code the 'print windowexists ("*gedit")' 2. code the 'print windowexists ("zyx")' Note: the name of window gedit was exists, however zyx was virtual. Actual results: 1. return 1 2. return 1 Expected results: 1. return 1 2. return 0 Does this happen every time? yes Other information: the fucn guiexist doesnnt return till recv the ctrl-c in pythone-idle. what for?
this is not a bug with ldtp but with ltfx. Also you cannot use wildcard characters in ltfx functions. As a temporary work around you could try this: in the source code of ltfx, maintl.c: (approximately lines 598, 603, 616, 621) comment out 'if (TRUE == generate_result)' diff: < if (TRUE == generate_result) --- > //if (TRUE == generate_result) 603c603 < if (TRUE == generate_result) --- > //if (TRUE == generate_result) 616c616 < if (TRUE == generate_result) --- > //if (TRUE == generate_result) 621c621 < if (TRUE == generate_result) --- > //if (TRUE == generate_result)