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

qmltest::item-grabber::test_endresult() fails on big endian architectures

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.7.1, 5.9.0, 5.12.0 Beta 2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Debian GNU/Linux ppc64 (happens also on powerpc and s390x)

      Description

      We get this failure on big endian architectures (such as powerpc and s390x) when running the qmltest:

      FAIL!  : qmltest::item-grabber::test_endresult() 'verify()' returned FALSE. ()
         Loc: [/«PKGBUILDDIR»/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml(47)]
      

      Line 47 is:

      verify(image.pixel(0, 0) === Qt.rgba(1, 0, 0, 1)); // Use verify because compare doesn't support colors (QTBUG-34878)
      

      Adding some debug warnings shows this:

      WARNING: qmltest::item-grabber::test_endresult_cache(row 0) got: #ffffff, expected: #ff0000
         Loc: [/home/mitya57/qtdeclarative-opensource-src-5.9.0/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml(94)]
      FAIL!  : qmltest::item-grabber::test_endresult_cache(row 0) 'verify()' returned FALSE. ()
         Loc: [/home/mitya57/qtdeclarative-opensource-src-5.9.0/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml(95)]
      WARNING: qmltest::item-grabber::test_endresult_cache(row 1) got: #ffffff, expected: #ff0000
         Loc: [/home/mitya57/qtdeclarative-opensource-src-5.9.0/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml(94)]
      FAIL!  : qmltest::item-grabber::test_endresult_cache(row 1) 'verify()' returned FALSE. ()
         Loc: [/home/mitya57/qtdeclarative-opensource-src-5.9.0/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml(95)]
      

      See also the attached PNG file, which represents the image being tested. This definitely looks like an endianness issue to me.

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            mandriver Dmitry Shachnev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes