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

Debug single test case (found with googletest) does not work correctly due to quotation marks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 9.0.1
    • Qt Creator 8.0.2, Qt Creator 9.0.0-rc1
    • Test Integration
    • None
    • Windows
    • c210ffb2d6 (qt-creator/qt-creator/9.0) c210ffb2d6 (qt-creator/qt-creator/master)

    Description

      After a fresh windows installation and qt installation I got Qt creator 8.02 and 9.0.0-rc1 installed.

      In both of them I noticed an odd behaviour when I choose to debug a single unit test with google test. 

      In those cases (filters are applied to the gtest call), the filters seem to match no tests. And thus no tests get executed.

       

      I compared with the behaviour in qt creator 7.0.0, what I used to use prior to reinstalling. The application output shows a difference in how the command line to call the test binary is quoted:

       

      7.0.0
      11:27:05: Debugging <project_path>\tests\unit_tests\debug\unit_testsd.exe "--gtest_filter=MyFilteredTestCase/*.*" "--gtest_catch_exceptions=0" ...
      
      9.0.0-rc1
      11:41:03: Debugging <project_path>\tests\unit_tests\debug\unit_testsd.exe "--gtest_filter="\""MyFilteredTestCase/*.*"\""" "--gtest_catch_exceptions=0" ...
      
      8.0.2
      11:31:24: Debugging <project_path>\tests\unit_tests\debug\unit_testsd.exe "--gtest_filter="\""MyFilteredTestCase/*.*"\""" "--gtest_catch_exceptions=0" ...
      

      Attachments

        Issue Links

          Activity

            People

              cstenger Christian Stenger
              darkmattercoder Jochen Bauer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: