aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2016-11-14 09:43:53 +0100
committerhjk <hjk@qt.io>2016-11-14 11:15:04 +0000
commit8f2f614f22064280f29c3aa683ceeb273ec6e9e0 (patch)
tree0f6121d22d995f4b9bcf541b1d2a5d88ff68b39e
parent3c8038979631ecc84628714318a6864074840626 (diff)
Debugger: Force #include <boost/version.hpp> in boost dumper tests
We might end up with undefined boost version otherwise. Change-Id: Ibcdc70cbce8aad42947ce4760df0208d5ebe83f7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--tests/auto/debugger/tst_dumpers.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp
index 786201dfcb..851f0d44ec 100644
--- a/tests/auto/debugger/tst_dumpers.cpp
+++ b/tests/auto/debugger/tst_dumpers.cpp
@@ -587,6 +587,7 @@ struct Profile
{
Profile(const QByteArray &contents) : contents(contents) {}
+ QByteArray includes;
QByteArray contents;
};
@@ -609,6 +610,7 @@ struct BoostProfile : public Profile
contents = QByteArray("INCLUDEPATH += ") + boostIncPath.constData();
else
contents = "macx:INCLUDEPATH += /usr/local/include";
+ includes = "#include <boost/version.hpp>\n";
}
};
@@ -668,6 +670,7 @@ public:
const Data &operator+(const Profile &profile) const
{
profileExtra += profile.contents;
+ includes += profile.includes;
return *this;
}