diff --git a/tests/unit/unittest/clientserveroutsideprocess.cpp b/tests/unit/unittest/clientserveroutsideprocess.cpp index 40e7e9b35ab..bb242433de9 100644 --- a/tests/unit/unittest/clientserveroutsideprocess.cpp +++ b/tests/unit/unittest/clientserveroutsideprocess.cpp @@ -47,6 +47,8 @@ #include #include "gtest-qt-printing.h" +#include + #include #include #include @@ -55,12 +57,6 @@ #include -#ifdef Q_OS_WIN -#define QTC_HOST_EXE_SUFFIX L".exe" -#else -#define QTC_HOST_EXE_SUFFIX "" -#endif - using namespace ClangBackEnd; using ::testing::Eq; @@ -175,7 +171,7 @@ TEST_F(ClientServerOutsideProcess, SendUnregisterProjectPartsForEditorMessage) void ClientServerOutsideProcess::SetUpTestCase() { - client.setProcessPath(QStringLiteral(ECHOSERVER QTC_HOST_EXE_SUFFIX)); + client.setProcessPath(Utils::HostOsInfo::withExecutableSuffix(QStringLiteral(ECHOSERVER))); ASSERT_TRUE(client.connectToServer()); }