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

Resolution of source file for failed tests is invalid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.0.0-beta1
    • Fix Version/s: Qt Creator 4.0.0-beta1
    • Component/s: Test Integration
    • Labels:
      None
    • Environment:
      Windows
    • Commits:
      09bc4baf3cea1cb326851a2828da16d751fb6bb9

      Description

      When a test fails, it shows the failure location (using _FILE and LINE_)

      This information is used by the parser to link to the source file.

      Since _FILE_ is relative, a base directory is needed for resolving it to a full path.

      The base directory that is used is the application path. This is wrong both for shadow and in-source build (at least on Windows).

      The executable is placed in debug/test.exe, while the Makefile is one directory above it, and the reference is to ../test/test.cpp for shadow build or just test.cpp for in-source.

      The base directory should be the directory from which make was executed.

        Attachments

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

          Activity

            People

            Assignee:
            cstenger Christian Stenger
            Reporter:
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes