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

QtCreator crashes on showing large test fail messages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 5.0.0
    • Qt Creator 4.15.2
    • Test Integration
    • None
    • Windows
    • bfee48ab0b74338d669773b43b8d32497f97e333 (qt-creator/qt-creator/5.0)

    Description

      When using googletest:

      consider 

      TEST(Test1, T)
      {
       std::string s(100000, '.');
       FAIL() << s;
      }
      

      Let this test run in the IDE.
      Then you have right to 'FAIL() << s;' next to line number a marking which would show the fail message as a fly over hint. But the IDE just crashs - obviously because of the long message..

      And if you fix this - please show somewhere the full output of the test, in the test execution view it is already limited, Or set limits behind just some kB - maybe 1 MB?

      Attachments

        Issue Links

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

          Activity

            People

              cstenger Christian Stenger
              alexander_p Alexander Pentzel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes