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

QtCreator crashes on showing large test fail messages

XMLWordPrintable

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

      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?

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes