test__btree_serializer.TestGCCKHSHA1LeafNode.test_large_offsets fails on alpha

Bug #725051 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Martin Packman

Bug Description

I'm not entirely sure what's going on here:

FAIL: bzrlib.tests.test__btree_serializer.TestGCCKHSHA1LeafNode.test_large_offsets
----------------------------------------------------------------------
_StringException: Text attachment: log
------------

------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 499, in _run_test_method
    return self._get_test_method()()
  File "/build/buildd-bzr_2.3.0-4-alpha-Pah9QR/bzr-2.3.0/build/lib.linux-alpha-2.6/bzrlib/tests/test__btree_serializer.py", line 212, in test_large_offsets
    ], [x[1][0] for x in leaf.all_items()])
AssertionError: not equal:
a = ['12345678901 1234567890 0 1',
 '2147483648 2147483647 0 1',
 '4294967296 4294967295 4294967294 1']
b = ['12345678901 1234567890 0 1',
 '2147483648 2147483647 0 1',
 '4294967296 18446744073709551615 18446744073709551614 1']

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

For background, see https://buildd.debian.org/fetch.cgi?pkg=bzr&arch=alpha&ver=2.3.0-4&stamp=1298487726&file=log&as=raw

Tags: selftest alpha

Related branches

Revision history for this message
Martin Packman (gz) wrote :

Looks like a standard 32 bit vs 64 bit problem:

>>> for i in (4294967296, 4294967295, 4294967294):
    print hex(i)
...
0x100000000L
0xFFFFFFFFL
0xFFFFFFFEL

>>> for i in (4294967296, 18446744073709551615, 18446744073709551614):
    print hex(i)
...
0x100000000L
0xFFFFFFFFFFFFFFFFL
0xFFFFFFFFFFFFFFFEL

Martin Packman (gz)
Changed in bzr:
assignee: nobody → Martin [gz] (gz)
status: Triaged → In Progress
Revision history for this message
Martin Packman (gz) wrote :

Fixed on trunk, and on debian in 2.3.0-6 uploaded by Jelmer:
<http://packages.qa.debian.org/b/bzr/news/20110226T150331Z.html>

Changed in bzr:
milestone: none → 2.4b1
status: In Progress → 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.