PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 110 - Overflow tests failing in i386
: Overflow tests failing in i386
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: All All
: P5 normal
Assigned To: Lauro Moura
:
:
:
  Show dependency treegraph
 
Reported: 2009-12-21 15:56 EET by Lauro Moura
Modified: 2010-02-24 17:32 EET (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2009-12-21 15:56:39 EET
The overflow and numerical implicit conversion tests fail in an i386
environment.

Test output:

======================================================================
FAIL: Test Size class > operator.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lauro/dev/pyside/shiboken/tests/samplebinding/size_test.py", line
101, in testMajorOperator
    self.assertFalse(s1 > s1)
AssertionError

======================================================================
FAIL: Test Size class <= operator.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lauro/dev/pyside/shiboken/tests/samplebinding/size_test.py", line
74, in testMinorEqualOperator
    self.assertTrue(s1 <= s1)
AssertionError

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

======================================================================
FAIL: C++ function receives an unsigned int argument and raise OverflowError if
the value is negative.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lauro/dev/pyside/shiboken/tests/samplebinding/overflow_test.py",
line 42, in testUnsignedInt
    self.assertRaises(OverflowError, doubleUnsignedInt, val)
AssertionError: OverflowError not raised

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

======================================================================
FAIL: Int as unsigned Int
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/lauro/dev/pyside/shiboken/tests/samplebinding/implicitconv_numerical_test.py",
line 93, in testIntAsUInt
    self.assertRaises(OverflowError, sample.acceptUInt, -3)
AssertionError: OverflowError not raised

======================================================================
FAIL: Long as unsigned Int
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/lauro/dev/pyside/shiboken/tests/samplebinding/implicitconv_numerical_test.py",
line 121, in testLongAsUInt
    self.assertRaises(OverflowError, sample.acceptUInt, -42)
AssertionError: OverflowError not raised

----------------------------------------------------------------------
Comment 1 Hugo Parente Lima 2010-01-22 17:11:55 EET
Fixed in commits (shiboken):

commit 502ae1c940487e65577f735fecfeecd2092d8c1c
Author: Hugo Lima <hugo.lima@openbossa.org>
Date:   Fri Jan 22 16:48:12 2010 -0200

    Add overflow check to unsigned int, because we need it on 64bit platforms.

commit c6bbc80f277b1c490fadef26ab64a613d45276aa
Author: Hugo Lima <hugo.lima@openbossa.org>
Date:   Fri Jan 22 02:04:23 2010 -0300

    Fix implicitconv_numerical tests

    Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>

commit c6898072bfb72d76d5e15e8fd59b5e86752006e3
Author: Hugo Lima <hugo.lima@openbossa.org>
Date:   Fri Jan 22 01:00:32 2010 -0300

    Fix bug on overflow check routines under 32 bits platforms.