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

Crash when deleting name of the test in gtest macro TEST_F

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 4.15.0
    • C/C++/Obj-C++ Support
    • None
    • macOS

    Description

      I have a google test that I am working on, and have a crash when deleting the name of a test. For example:

       

      namespace {
      class ExampleFixture : public Test {
      public:
          ExampleFixture() {}
      };
      
      TEST_F(ExampleFixture, WhenSomeAction_EnsureCondition)
      {
      }
      }

      Now I delete the "WhenSomeAction_EnsureCondition" text and the moment it is deleted, then qtcreator crashes fully.

       

      So this is the moment of the crash situation:

      namespace {
      class ExampleFixture : public Test { 
      public: 
          ExampleFixture() {}
      };
      
      TEST_F(ExampleFixture, <cursor is here, crashes on last backspace>) 
      { 
      }
      }

      And I could reproduce it multiple times with this same file.

      Note: this is not the actual code I am using, just an example obviously

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            tomdeblauwe Tom Deblauwe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes