Make unittest independent from the location of the executable.
ClosedPublic

Authored by dfaure on Jul 29 2017, 6:42 AM.

Details

Summary

This fixes the check in the unittest when doing
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
which I intend to do globally at some point.

Turns out it's comparing with its own executable location, so we
can use QCoreApplication to get it generically.

Test Plan

Verified to work with ctest and with "./testWaylandServerDisplay"

Diff Detail

Repository
R127 KWayland
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dfaure created this revision.Jul 29 2017, 6:42 AM
Restricted Application added projects: Plasma on Wayland, Frameworks. · View Herald TranscriptJul 29 2017, 6:42 AM
Restricted Application added subscribers: Frameworks, plasma-devel. · View Herald Transcript
mart accepted this revision.Jul 29 2017, 8:48 AM
This revision is now accepted and ready to land.Jul 29 2017, 8:48 AM
graesslin accepted this revision.Jul 29 2017, 5:42 PM
This revision was automatically updated to reflect the committed changes.