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

Resolution of source file for failed tests is invalid

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.0.0-beta1
    • Qt Creator 4.0.0-beta1
    • Test Integration
    • None
    • Windows
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: