After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 342240 - the return value of func windowexists was incorrect.
the return value of func windowexists was incorrect.
Status: RESOLVED WONTFIX
Product: LDTP
Classification: Other
Component: ldtp
0.4.x
Other All
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2006-05-18 11:59 UTC by lavi.xu
Modified: 2006-05-19 00:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description lavi.xu 2006-05-18 11:59:35 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?
Comment 1 Prashanth Mohan 2006-05-18 13:13:38 UTC
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)