From 6dbcb6c96f55e1fa41af8a3aedb60d7d1edb1c33 Mon Sep 17 00:00:00 2001 From: aavit Date: Mon, 8 Nov 2010 15:28:44 +0100 Subject: Get the qmakespec correctly on all platforms --- tests/arthur/common/baselineprotocol.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/arthur/common/baselineprotocol.cpp b/tests/arthur/common/baselineprotocol.cpp index 3e60011..3fdef88 100644 --- a/tests/arthur/common/baselineprotocol.cpp +++ b/tests/arthur/common/baselineprotocol.cpp @@ -46,6 +46,7 @@ #include #include #include +#include #ifndef QMAKESPEC #define QMAKESPEC "Unknown" @@ -57,7 +58,8 @@ PlatformInfo::PlatformInfo(bool useLocal) if (useLocal) { insert(PI_HostName, QHostInfo::localHostName()); insert(PI_QtVersion, QLS(qVersion())); - insert(PI_QMakeSpec, QFileInfo(QLS(QMAKESPEC)).fileName()); + QString mkspec = QDir::fromNativeSeparators(QLS(QMAKESPEC)).remove(QRegExp(QLS("^.*/mkspecs/"))); + insert(PI_QMakeSpec, mkspec); insert(PI_BuildKey, QLibraryInfo::buildKey()); #if defined(Q_OS_LINUX) insert(PI_OSName, QLS("Linux")); -- cgit v0.12