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

auto/qstatemachine test fails to build - no match

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.7.2
    • 4.7.0
    • State Machine
    • None
    • OpenSolaris b134
      Sun Studio 12u1
    • 59fc149ae0d43b3b5bb9e5695531d6f576598e2d

      the auto/qstatemachine test fails to build with the below error
      the attached patch fixes it for me
      this is in current git, but was present in 4.6 already

      test@qttest:~/tmp/qt/tests/auto/qstatemachine$ /usr/bin/gmake -f Makefile.gui
      /usr/bin/CC -c -features=extensions -library=no%Cstd -library=Crun -lstdcxx4 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/stdcxx4/ -I/usr/include/stdcxx4/ansi -I/opt/kde4/include -O2 -mt -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/usr/local/Trolltech/Qt-4.7.0/mkspecs/solaris-cc -I. -I../../../include/QtCore -I../../../include/QtGui -I../../../include -I../../../include/QtTest -I.moc/release-shared -I/usr/sfw/include -o .obj/release-shared/tst_qstatemachine.o tst_qstatemachine.cpp
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Warning: Initializing const QState& to a NULL value.
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: While instantiating "QState::qt_check_for_QOBJECT_macro<QState>(const QState&) const".
      "../../../include/QtCore/../../src/corelib/kernel/qobject.h", line 453: Where: Instantiated from qobject_cast<QState*>(QObject*).
      "tst_qstatemachine.cpp", line 1099: Where: Instantiated from non-template code.
      "tst_qstatemachine.cpp", line 1115: Error: Could not find a match for QTest::qCompare<QTest::T>(QState*, QObject*, const char[23], const char[12], const char[22], int) needed in tst_QStateMachine::machineWithParent().
      1 Error(s) and 1 Warning(s) detected.
      gmake: *** [.obj/release-shared/tst_qstatemachine.o] Error 1

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

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            hajma Pavel Heimlich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes