From 3077ddc9b5a0a083d8e108c8497863d9219df69c Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 13 May 2014 13:33:28 +0200 Subject: Tests: Fix dumper execution on Mac Change-Id: I93fbbb48438f8012764c5365e502ed5faa895c5f Reviewed-by: hjk --- tests/auto/debugger/tst_dumpers.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index d7935c45e9..e22849ffce 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -1045,7 +1045,12 @@ void tst_Dumpers::dumper() qmake.setWorkingDirectory(t->buildPath); cmd = QString::fromLatin1(m_qmakeBinary); //qDebug() << "Starting qmake: " << cmd; - qmake.start(cmd); + QStringList options; +#ifdef Q_OS_MAC + if (m_qtVersion < 0x050000) + options << QLatin1String("-spec") << QLatin1String("unsupported/macx-clang"); +#endif + qmake.start(cmd, options); QVERIFY(qmake.waitForFinished()); output = qmake.readAllStandardOutput(); error = qmake.readAllStandardError(); -- cgit v1.2.1