aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/unittest/clientserveroutsideprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/unittest/clientserveroutsideprocess.cpp')
-rw-r--r--tests/unit/unittest/clientserveroutsideprocess.cpp10
1 files changed, 3 insertions, 7 deletions
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 <gtest/gtest.h>
#include "gtest-qt-printing.h"
+#include <utils/hostosinfo.h>
+
#include <QBuffer>
#include <QProcess>
#include <QSignalSpy>
@@ -55,12 +57,6 @@
#include <vector>
-#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());
}