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

tst_cursor fails often on webOS

XMLWordPrintable

    • webOS
    • 69cb61a641 (qt/qtdeclarative/dev) 69cb61a641 (qt/tqtc-qtdeclarative/dev) f7e22835bf (qt/qtdeclarative/6.4) f7e22835bf (qt/tqtc-qtdeclarative/6.4)

       

      Config: Using QtTest library 6.4.0, Qt 6.4.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 9.3.0), webos 2.17.0.g
      QDEBUG : tst_cursor::scrollBar() static void WebOSShellSurfacePrivate::position_changed(void*, wl_webos_shell_surface*, int32_t, int32_t)
      QDEBUG : tst_cursor::scrollBar() webOS specific cursor handling for: Qt::ArrowCursor
      QDEBUG : tst_cursor::scrollBar() setting cursor Qt::BitmapCursor
      FAIL!  : tst_cursor::scrollBar() Compared values are not the same
         Actual   (window->cursor().shape())  : BitmapCursor
         Expected (textArea->cursor().shape()): IBeamCursor
         Loc: [/usr/src/debug/qtdeclarative/6.4.0-r0/git/tests/auto/quickcontrols2/cursor/tst_cursor.cpp(203)]
      QWARN  : tst_cursor::textArea() qt.qpa.wayland: Setting cursor position is not possible on wayland
      

       

      This test seems to have around 65% failure rate on webOS emulator.

      Filling text area with more content here
      https://code.qt.io/cgit/qt/qtdeclarative.git/tree/tests/auto/quickcontrols2/cursor/tst_cursor.cpp#n185

      i.e.

      textArea->setText(QString("Qt Qt Qt Qt Qt Qt Qt Qt Qt Qt Qt Qt Qt Qt Qt \n").repeated(200));

      makes it fail far less often, but still 0.2 - 1.6% of test runs did fail on my local emulator. When run on Ubuntu 20.04 desktop, there wasn't a single failure during 1000 runs.

      Since LG has a implemented a custom cursor handling , we could perhaps just skip this particular comparison since the root cause might not be in the Qt side after all.

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

            jannej Janne Juntunen
            jannej Janne Juntunen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes