Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Test working directory
Forum Updated to NodeBB v4.3 + New Features

Qt Test working directory

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 175 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BitShifter
    wrote on last edited by
    #1

    Hi,
    I have a cmake project with some UniTests.
    If I run the build steps with cmake.exe -- build {build-directory} --target all test everything works fine. The UnitTest are executed successful.

    If I try to run a UnitTest from the QtCreator-side panel "Test\Qt Test" I get the error "FATAL ... Test for project ... crashed.".
    Then I copied the command line and path from the "Test-Results" panel into a myUnitTest.cmd-script and found out a custom runtime library is missed. If I change the working directory or the add the path of the missed library to the PATH variable, everything works fine.

    Question:
    How can I
    A) configure the working directory of the UnitTests executed from the QtCreator-side panel "Test\Qt Test"?
    ... or
    B) add an additional path to the environment PATH variable for the UnitTest? (Modifying the PATH variable in the Project/Run Settings does not work. There are no changes in the PATH variable displayed in the "Test-Results" panel.)

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved