From f1881ac2fc2671be4ce11c381abfcea852feb8e7 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 1 Jun 2018 10:30:15 +0200 Subject: Tests: Fix defining path to sdktool Replace backslashes with normal slashes as Qt handles them inside paths correctly itself. Otherwise we might end up using unknown escape sequences which leads to not executing anything and a passing test. Escaping the blanks is not necessary as they are handled correctly automatically. Change-Id: Ib1a81949c54d41b7864e30a1371de2e148f96bb8 Reviewed-by: Tobias Hunger --- tests/auto/sdktool/sdktool.pro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/auto/sdktool/sdktool.pro b/tests/auto/sdktool/sdktool.pro index b83c78847f..fe78c49f27 100644 --- a/tests/auto/sdktool/sdktool.pro +++ b/tests/auto/sdktool/sdktool.pro @@ -1,5 +1,8 @@ include(../qttest.pri) -DEFINES += "SDKTOOL_DIR=\\\"$$replace(IDE_LIBEXEC_PATH, " ", "\\ ")\\\"" +TMP_ILP = $$IDE_LIBEXEC_PATH +win32: TMP_ILP = $$replace(TMP_ILP, \\\\, /) + +DEFINES += SDKTOOL_DIR=\\\"$$TMP_ILP\\\" SOURCES += tst_sdktool.cpp -- cgit v1.2.3