Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8980

QString autotest has problems fetching qlonglong variables correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 4.7.0
    • 4.6.3
    • Testing: qtestlib
    • None
    • ARM

    Description

      'void tst_QString::integer_conversion_data()' has 'qlonglong' variables in the last column of test rows. Then in 'void tst_QString::integer_conversion()' 'QFETCH(qlonglong, num);' fetches weird values to num.

      This does not happen for example if I add an extra boolean column to the test rows after the qlonglong column. Or If I comment out most of the test rows and leave a few of the bad behaving rows, they start working normally.

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

      FAIL! : tst_QString::integer_conversion(C -0xf 0) Compared values are not the same
      Actual (d): -15
      Expected (num): 4811016207641192
      Loc: [tst_qstring.cpp(3729)]
      QDEBUG : tst_QString::integer_conversion(C -0xf 0) num: 4294967300
      FAIL! : tst_QString::integer_conversion(C -0xf 0) Compared values are not the same
      Actual (d): -15
      Expected (num): 4294967300
      Loc: [tst_qstring.cpp(3729)]
      QDEBUG : tst_QString::integer_conversion(C 0xf 0) num: 1113243648
      FAIL! : tst_QString::integer_conversion(C 0xf 0) Compared values are not the same
      Actual (d): 15
      Expected (num): 1113243648
      Loc: [tst_qstring.cpp(3729)]
      QDEBUG : tst_QString::integer_conversion(C -010 0) num: 4780891307009105488
      FAIL! : tst_QString::integer_conversion(C -010 0) Compared values are not the same
      Actual (d): -8
      Expected (num): 4780891307009105488
      Loc: [tst_qstring.cpp(3729)]
      QDEBUG : tst_QString::integer_conversion(C 010 0) num: 1
      FAIL! : tst_QString::integer_conversion(C 010 0) Compared values are not the same
      Actual (d): 8
      Expected (num): 1
      Loc: [tst_qstring.cpp(3729)]

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            fernenge Harald Fernengel
            rspriha Raino Priha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes