Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28805

Test execution error - Spaces in testrow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • Qt Creator 9.0.2
    • Qt Creator 9.0.1
    • Test Integration
    • None
    • Linux/X11
    • 274bb27cf3b8a5d888bafa069925e230bf5ae90c

    Description

      When I use the List of tests in the QtCreator to start a single testrow containing spaces, QtCreator try to execute three testrows (Foo, Bar, Fail) in the following example:

      #include <QtTest>
      
      class test_Example
      	: public QObject
      {
      	Q_OBJECT
      
      	private Q_SLOTS:
      		void test_example_data()
      		{
      			QTest::addColumn<int>("number");
      
      			QTest::addRow("Foo Bar Fail") << 1;
      		}
      
      
      		void test_example()
      		{
      			QFETCH(int, number);
      
      			qDebug() << "Fancy Stuff" << number;
      		}
      
      
      };
      
      QTEST_GUILESS_MAIN(test_Example)
      #include "test_Example.moc"
      

      See also.

      Attachments

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

        Activity

          People

            cstenger Christian Stenger
            larss Lars Schmertmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes