test_battery_ac failed: (upowerd:12673): GLib-CRITICAL **: g_ascii_strcasecmp: assertion `s1 != NULL' failed

Bug #1012578 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upower (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

upower autopackage test failed on Quantal i386 and amd64

https://jenkins.qa.ubuntu.com/view/Quantal/view/AutoPkg%20Test/job/quantal-adt-upower/5/

Excerpt from the logs:
upowerd: no process found
test_battery_ac (__main__.Tests)
battery properties with and without AC ...
-------------- daemon log: ----------------

(upowerd:12673): GLib-CRITICAL **: g_ascii_strcasecmp: assertion `s1 != NULL' failed
------------------------------
FAIL
test_battery_charge (__main__.Tests)
battery which reports charge instead of energy ... ok
test_daemon_version (__main__.Tests)
DaemonVersion property ... ok
test_multiple_batteries (__main__.Tests)
Multiple batteries ... ok
test_unknown_battery_status (__main__.Tests)
Unknown battery charge status ... ok
test_ups_ac (__main__.Tests)
UPS properties with and without AC ... ok

======================================================================
FAIL: test_battery_ac (__main__.Tests)
battery properties with and without AC
----------------------------------------------------------------------
Traceback (most recent call last):
  File "src/linux/integration-test", line 250, in test_battery_ac
    self.assertEqual(self.get_dbus_dev_property(ac_up, 'PowerSupply'), True)
AssertionError: False != True

----------------------------------------------------------------------

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: upower 0.9.16-2
ProcVersionSignature: Ubuntu 3.4.0-5.11-generic 3.4.0
Uname: Linux 3.4.0-5-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.2.1-0ubuntu2
Architecture: amd64
Date: Wed Jun 13 11:22:06 2012
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: upower
UpgradeStatus: Upgraded to quantal on 2012-01-31 (133 days ago)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in upower (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

Can also reproduce this on my running system, so it's not related to the jenkins VM environment.

Changed in upower (Ubuntu):
importance: Undecided → High
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in upower (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package upower - 0.9.16-3

---------------
upower (0.9.16-3) unstable; urgency=low

  * Add 00git_powersupply_property.patch: Fix wrong PowerSupply property for
    devices without a scope sysfs attribute. Also committed to upstream git.
    (LP: #1012578)
 -- Martin Pitt <email address hidden> Thu, 14 Jun 2012 13:30:00 +0200

Changed in upower (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.