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

data driven tests do not handle inherited data types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.10
    • Testing: qtestlib
    • None
    • All

       

          QTest::addColumn<QOperatingSystemVersion>("lhs");
          QTest::addColumn<QOperatingSystemVersion>("rhs");
          QTest::addColumn<Qt::partial_ordering>("result");
       
          QTest::newRow("foo")
              << QOperatingSystemVersion::MacOSSonoma
              << QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 14)
              << Qt::partial_ordering::equivalent;
       
      QDEBUG : tst_QOperatingSystemVersion::comparison2() expected data of type 'QOperatingSystemVersion', got 'QOperatingSystemVersionBase' for element 0 of data with tag 'foo'
      

       

      because MacOSSonoma is defined as a QOperatingSystemVersionBase. Making the the column types QOperatingSystemVersionBase does not work either.

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

            macadder Jason McDonald
            vestbo Tor Arne Vestbø
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes