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

Parsing gtest test output is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 4.11.0-rc1
    • Test Integration
    • None
    • Linux/X11

    Description

      When running tests with Gtest qt creator runs them ok but presenting output is broken.

      See:

      And log:

      Running main() from /tmp/googletest/googletest/src/gtest_main.cc
      Note: Google Test filter = XYZ.*
      [==========] Running 9 tests from 1 test case.
      [----------] Global test environment set-up.
      [----------] 9 tests from XYZ
      [ RUN      ] XYZ.AA
      [ERROR]  Something    : Config provided has plugin entries with same name, cannot proceed!
      [       OK ] XYZ.AA (1 ms)
      [ RUN      ] XYZ.BB
      [       OK ] XYZ.BB (0 ms)
      [ RUN      ] XYZ.CC
      [ERROR]  Something    : Id's in config are not unique, found duplicated id with value 1 for type IPC[       OK ] XYZ.CC (0 ms)
      [ RUN      ] XYZ.DD
      [       OK ] XYZ.DD (0 ms)
      [ RUN      ] XYZ.EE
      [ERROR]  Something    : Not known plugin (NonExisting) to load, can't continue.
      [       OK ] XYZ.EE (0 ms)
      [ RUN      ] XYZ.FF
      [       OK ] XYZ.FF (1 ms)
      [ RUN      ] XYZ.GG[WARNING] /tmp/googletest/googletest/src/gtest-death-test.cc:1050:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 2 threads. See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads for more explanation and suggested solutions, especially if this is the last message you see before your test times out.
      [       OK ] XYZ.GG (130 ms)
      [ RUN      ] XYZ.HH[WARNING] /tmp/googletest/googletest/src/gtest-death-test.cc:1050:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 2 threads. See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads for more explanation and suggested solutions, especially if this is the last message you see before your test times out.
      [       OK ] XYZ.HH (129 ms)
      [ RUN      ] XYZ.II[WARNING] /tmp/googletest/googletest/src/gtest-death-test.cc:1050:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 2 threads. See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads for more explanation and suggested solutions, especially if this is the last message you see before your test times out.
      [       OK ] XYZ.II (1003 ms)
      [----------] 9 tests from XYZ (1264 ms total)[----------] Global test environment tear-down
      [==========] 9 tests from 1 test case ran. (1264 ms total)
      [  PASSED  ] 9 tests.
      

       

      Even disabling colored output do not work always:

      Running main() from /tmp/googletest/googletest/src/gtest_main.cc
      Note: Google Test filter = XYZ.*
      [==========] Running 9 tests from 1 test case.
      [----------] Global test environment set-up.
      [----------] 9 tests from XYZ
      [ RUN      ] XYZ.AA
      [ERROR]  Something    : Config provided has plugin entries with same name, cannot proceed!
      [       OK ] XYZ.AA (0 ms)
      [ RUN      ] XYZ.BB
      [       OK ] XYZ.BB (0 ms)
      [ RUN      ] XYZ.CC
      [ERROR]  Something    : Id's in config are not unique, found duplicated id with value 1 for type IPC[       OK ] XYZ.CC (1 ms)
      [ RUN      ] XYZ.DD
      [       OK ] XYZ.DD (0 ms)
      [ RUN      ] XYZ.EE
      [       OK ] XYZ.EE (0 ms)
      [ RUN      ] XYZ.FF
      [ERROR]  Something    : Not known plugin (NonExisting) to load, can't continue.
      [       OK ] XYZ.FF (0 ms)
      [ RUN      ] XYZ.GG[WARNING] /tmp/googletest/googletest/src/gtest-death-test.cc:1050:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 2 threads. See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads for more explanation and suggested solutions, especially if this is the last message you see before your test times out.
      [       OK ] XYZ.GG (136 ms)
      [ RUN      ] XYZ.HH[WARNING] /tmp/googletest/googletest/src/gtest-death-test.cc:1050:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 2 threads. See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads for more explanation and suggested solutions, especially if this is the last message you see before your test times out.
      [       OK ] XYZ.HH (129 ms)
      [ RUN      ] XYZ.II[WARNING] /tmp/googletest/googletest/src/gtest-death-test.cc:1050:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 2 threads. See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads for more explanation and suggested solutions, especially if this is the last message you see before your test times out.
      [       OK ] XYZ.II (1003 ms)
      [----------] 9 tests from XYZ (1271 ms total)[----------] Global test environment tear-down
      [==========] 9 tests from 1 test case ran. (1271 ms total)
      [  PASSED  ] 9 tests.
      

       

       

       

      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
              pawelrutka pawel rutka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes