From e36082dcdcf66ea6e8adbcbf463a20b2001d1e92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 4 May 2023 13:59:36 +0200 Subject: [PATCH] test: Pass -use-debug-libs for macdeploy test when built as debug As this is a strong indication that Qt was also built in debug. Otherwise the test will fail locally for a debug build. Pick-to: 6.5 Change-Id: I5f494017f1d89f4076ccaca89aaa67738ef405a9 Reviewed-by: Timur Pocheptsov --- tests/auto/tools/macdeployqt/tst_macdeployqt.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/tools/macdeployqt/tst_macdeployqt.cpp b/tests/auto/tools/macdeployqt/tst_macdeployqt.cpp index b7deb8f2c4..c27091efad 100644 --- a/tests/auto/tools/macdeployqt/tst_macdeployqt.cpp +++ b/tests/auto/tools/macdeployqt/tst_macdeployqt.cpp @@ -165,6 +165,9 @@ bool deploy(const QString &name, const QStringList &options, QString *errorMessa QString bundle = name + ".app"; QString path = buildPath(name); QStringList args = QStringList() << bundle << options; +#if defined(QT_DEBUG) + args << "-use-debug-libs"; +#endif if (lcTests().isDebugEnabled()) args << "-verbose=3"; return runProcess(g_macdeployqtBinary, args, errorMessage, path);