From 43b21595e97d0260f811389db9db8d0d9a4d0a41 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Thu, 24 Nov 2022 09:16:40 +0100 Subject: [PATCH] Utils: Disable broken commandline tests on windows Change-Id: I20e89877886b0f9416cca766a119b99191011d1b Reviewed-by: hjk --- tests/auto/utils/commandline/tst_commandline.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/auto/utils/commandline/tst_commandline.cpp b/tests/auto/utils/commandline/tst_commandline.cpp index 100e3fcbb25..5a7202fc6a4 100644 --- a/tests/auto/utils/commandline/tst_commandline.cpp +++ b/tests/auto/utils/commandline/tst_commandline.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0 #include +#include #include #include @@ -31,6 +32,9 @@ private slots: 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 cmd2("/tmp/space \"path/echo", {"bar\"", "blizz is 'great"}); @@ -46,6 +50,9 @@ private slots: 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 cmd2("/tmp/space \"path/echo", {"bar\"", "blizz is 'great"}); cmd.addCommandLineWithAnd(cmd2);