unit test "DeviceTest.NewFromVariant" fails on armhf / powerpc

Bug #1079795 reported by Charles Kerr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
indicator-power
Fix Released
Undecided
Charles Kerr
indicator-power (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

As reported at <https://launchpadlibrarian.net/123199222/buildlog_ubuntu-raring-armhf.indicator-power_12.10.6daily12.11.16-0ubuntu1_FAILEDTOBUILD.txt.gz> --

Running main() from gtest_main.cc
[==========] Running 8 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 8 tests from DeviceTest
[ RUN ] DeviceTest.GObjectNew
[ OK ] DeviceTest.GObjectNew (8 ms)
[ RUN ] DeviceTest.Properties
[ OK ] DeviceTest.Properties (0 ms)
[ RUN ] DeviceTest.New
[ OK ] DeviceTest.New (1 ms)
[ RUN ] DeviceTest.NewFromVariant
test-device.cc:215: Failure
Value of: 30
Expected: indicator_power_device_get_time(device)
Which is: 1078832665
[ FAILED ] DeviceTest.NewFromVariant (2 ms)
[ RUN ] DeviceTest.BadAccessors
[ OK ] DeviceTest.BadAccessors (10 ms)
[ RUN ] DeviceTest.IconNames
[ OK ] DeviceTest.IconNames (6 ms)
[ RUN ] DeviceTest.Labels
[ OK ] DeviceTest.Labels (1 ms)
[ RUN ] DeviceTest.ChoosePrimary
[ OK ] DeviceTest.ChoosePrimary (5 ms)
[----------] 8 tests from DeviceTest (48 ms total)

[----------] Global test environment tear-down
[==========] 8 tests from 1 test case ran. (56 ms total)
[ PASSED ] 7 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] DeviceTest.NewFromVariant

 1 FAILED TEST
FAIL: test-device

Related branches

Revision history for this message
Charles Kerr (charlesk) wrote :

This looks like a garden-variety bug where we we're passing an integral value to a function, and need to explicitly cast it to the correct width because it's a varargs function.

Charles Kerr (charlesk)
summary: - unit tests fail on armhf / powerpc
+ unit test DeviceTest.NewFromVariant fails on armhf / powerpc
summary: - unit test DeviceTest.NewFromVariant fails on armhf / powerpc
+ unit test "DeviceTest.NewFromVariant" fails on armhf / powerpc
Changed in indicator-power:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-power - 12.10.6daily12.11.21.1-0ubuntu1

---------------
indicator-power (12.10.6daily12.11.21.1-0ubuntu1) raring; urgency=low

  [ Mathieu Trudel-Lapierre ]
  * debian/control:
    - Bump Build-Depends on debhelper to (>= 9).
    - Reorganize Build-Depends for clarity; build system b-deps first.
    - Add autopoint to Build-Depends.
    - Add libxorg-gtest-dev to Build-Depends for unit tests.
    - Add libgtest-dev to Build-Depends for unit tests.
    - Use trailing commas for dep lists, as per other indicator packages.
    - Update Vcs-Bzr and Vcs-Browser fields, add notice to uploaders.
  * debian/compat: bump to compat level 9.
  * debian/rules:
    - use the dh sequencer with --with autoreconf.
    - override dh_autoreconf to call autogen.sh from upstream.
    - use DPKG_GENSYMBOLS_CHECK_LEVEL=4.
    - make sure we call dh_install --fail-missing in the dh_install override,
      to be consistent with other indicator packages.

  [ Didier Roche ]
  * Automatic snapshot from revision 155 (bootstrap)

  [ Charles Kerr ]
  * unit test "DeviceTest.NewFromVariant" fails on armhf / powerpc (LP:
    #1079795)

  [ Automatic PS uploader ]
  * Automatic snapshot from revision 158
 -- Automatic PS uploader <email address hidden> Wed, 21 Nov 2012 10:41:37 +0000

Changed in indicator-power (Ubuntu):
status: New → Fix Released
Changed in indicator-power:
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.