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 656801 - hasstate return wrong status result on solaris
hasstate return wrong status result on solaris
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: general
2.0.0
Other Solaris
: Normal major
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2011-08-18 05:19 UTC by Tim Miao
Modified: 2011-08-18 22:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tim Miao 2011-08-18 05:19:42 UTC
Installed latest LDTP trunk build(2.1.1), I found hasstate gave wrong state result. For the widgets with "enabled, showing, visible" status, ldtp always return "0" as state result. This is not shown in previous LDTP build. Please fix it.

I tracked down the codes and LDTP online help documents, found the problem existing in following codes:

diff --git a/ldtpd/core.py b/ldtpd/core.py
index 0f22e7b..95bc455 100644
--- a/ldtpd/core.py
+++ b/ldtpd/core.py
@@ -724,7 +724,7 @@ class Ldtpd(Utils, ComboBox, Table, Menu, PageTabList,
         """
         try:
             waiter = \
-                ObjectExistsWaiter(window_name, object_name, guiTimeOut, state)
+                ObjectExistsWaiter(window_name, object_name, state, guiTimeOut)
             return int(waiter.run())
         except:
             pass
Comment 1 Nagappan Alagappan 2011-08-18 22:56:03 UTC
Thanks for the bug report, fixed the issue in git head. This is a regression due to bug#654683