Commit 8c7913e0 authored by David Schulz's avatar David Schulz Committed by David Schulz

Clang: Fix compiling unittest on windows.

Change-Id: Id48d494510ee53a9e888e22a752e8210f3d4ae2d
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
Reviewed-by: Marco Bubke's avatarMarco Bubke <marco.bubke@qt.io>
parent 069a4dc7
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment