forked from qt-creator/qt-creator
Clang: Fix compiling unittest on windows.
Change-Id: Id48d494510ee53a9e888e22a752e8210f3d4ae2d Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
committed by
David Schulz
parent
069a4dc7dd
commit
8c7913e0ba
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user