forked from qt-creator/qt-creator
Utils: Disable broken commandline tests on windows
Change-Id: I20e89877886b0f9416cca766a119b99191011d1b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
||||||
|
|
||||||
#include <utils/commandline.h>
|
#include <utils/commandline.h>
|
||||||
|
#include <utils/hostosinfo.h>
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QtTest>
|
#include <QtTest>
|
||||||
@@ -31,6 +32,9 @@ private slots:
|
|||||||
|
|
||||||
void testAndComplex()
|
void testAndComplex()
|
||||||
{
|
{
|
||||||
|
if (HostOsInfo::isWindowsHost())
|
||||||
|
QSKIP("CommandLine does not produce useful escaping on windows.");
|
||||||
|
|
||||||
CommandLine cmd("/tmp/space path/\"echo", {"foo", "long with space"});
|
CommandLine cmd("/tmp/space path/\"echo", {"foo", "long with space"});
|
||||||
CommandLine cmd2("/tmp/space \"path/echo", {"bar\"", "blizz is 'great"});
|
CommandLine cmd2("/tmp/space \"path/echo", {"bar\"", "blizz is 'great"});
|
||||||
|
|
||||||
@@ -46,6 +50,9 @@ private slots:
|
|||||||
|
|
||||||
void testAndAdd()
|
void testAndAdd()
|
||||||
{
|
{
|
||||||
|
if (HostOsInfo::isWindowsHost())
|
||||||
|
QSKIP("CommandLine does not produce useful escaping on windows.");
|
||||||
|
|
||||||
CommandLine cmd("/tmp/space path/\"echo", {"foo", "long with space"});
|
CommandLine cmd("/tmp/space path/\"echo", {"foo", "long with space"});
|
||||||
CommandLine cmd2("/tmp/space \"path/echo", {"bar\"", "blizz is 'great"});
|
CommandLine cmd2("/tmp/space \"path/echo", {"bar\"", "blizz is 'great"});
|
||||||
cmd.addCommandLineWithAnd(cmd2);
|
cmd.addCommandLineWithAnd(cmd2);
|
||||||
|
Reference in New Issue
Block a user