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

Missing header in QTestLib

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.0
    • 4.7.0
    • Testing: qtestlib
    • None
    • Ubuntu 9.10
    • 79a53db37f76e3cc3687b0c7742a89260a736640

    Description

      A simple QTest test, such as:

      #include <QtTest/QtTest>
      
      class TestQString : public QObject
      {
          Q_OBJECT
      private slots:
          void toUpper();
      };
      
      void TestQString::toUpper()
      {
          QString str = "Hello";
          QVERIFY(str.toUpper() == "Hello");
      }
      
      QTEST_MAIN(TestQString)
      #include "testqstring.moc"
      

      Fails to build with the following error:

      /usr/local/Trolltech/Qt-4.7.0/include/QtTest/qbenchmark.h:46:47: error: QtTest/private/qbenchmarkmetric_p.h: No such file or directory

      Because the private/ directory and its contents are not installed under include/.

      Attachments

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

        Activity

          People

            rmcgover Rohan McGovern (Inactive)
            kko Kimmo Kotajärvi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes