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

QVariant creates corrupt QObject* in unit tests

    XMLWordPrintable

Details

    • cea4ae150bef0f24b0e8385d47b06a9f6b8197c3

    Description

      diff --git a/tests/auto/qvariant/tst_qvariant.cpp b/tests/auto/qvariant/tst_qvariant.cpp
      index 24bfffc..a9f406d 100644
      --- a/tests/auto/qvariant/tst_qvariant.cpp
      +++ b/tests/auto/qvariant/tst_qvariant.cpp
      @@ -2659,6 +2659,8 @@ void tst_QVariant::qvariant_cast_QObject() {
           QFETCH(QVariant, data);
           QFETCH(bool, success);
       
      +    qDebug() << data;
      +
           QObject *o = qvariant_cast<QObject *>(data);
           QCOMPARE(o != 0, success);
       }
      

      Causes segfault when the test is run. This affects Qt 4.6 but not 4.5

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            steveire Stephen Kelly (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes