Debugger: Disable some boost usage in autotest

Breaks some setups and is not that important anyway.

Change-Id: Ic5d324445c2a2f12a7f6c2a4b52b51e3a2567c95
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
hjk
2014-08-29 16:28:49 +02:00
parent c4ace44141
commit 389d64ec33
2 changed files with 13 additions and 0 deletions

View File

@@ -4,4 +4,13 @@ include(../../../src/private_headers.pri)
QT += core-private
exists(/usr/include/boost/unordered/unordered_set.hpp) {
DEFINES += HAS_BOOST
}
exists(/usr/local/include/boost/unordered/unordered_set.hpp) {
DEFINES += HAS_BOOST
INCLUDEPATH += /usr/local/include
}
SOURCES += tst_offsets.cpp

View File

@@ -38,7 +38,9 @@
#include <private/qfileinfo_p.h>
#include <private/qobject_p.h>
#ifdef HAS_BOOST
#include <boost/unordered/unordered_set.hpp>
#endif
class tst_offsets : public QObject
{
@@ -189,6 +191,7 @@ void tst_offsets::offsets_data()
#endif
}
#ifdef HAS_BOOST
{
boost::unordered::unordered_set<int> *p = 0;
@@ -199,6 +202,7 @@ void tst_offsets::offsets_data()
QTest::newRow("boost::unordered::unordered_set::buckets_")
<< int((char *)&p->table_.buckets_ - (char *)p) << 20 << 40;
}
#endif
}