Commit 9402ab1d authored by hjk's avatar hjk
Browse files

Debugger: Disable boost_unordered autotest for gdb < 7.6



Change-Id: I67e63892ff997312fb23f421b0eabaf9bc1eb4aa
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 1ba91e30
...@@ -215,6 +215,13 @@ struct LldbVersion : VersionBase ...@@ -215,6 +215,13 @@ struct LldbVersion : VersionBase
{} {}
}; };
struct BoostVersion : VersionBase
{
BoostVersion(int minimum = 0, int maximum = INT_MAX)
: VersionBase(minimum, maximum)
{}
};
static QByteArray noValue = "\001"; static QByteArray noValue = "\001";
static QString toHex(const QString &str) static QString toHex(const QString &str)
...@@ -593,6 +600,9 @@ struct DataBase ...@@ -593,6 +600,9 @@ struct DataBase
mutable LldbVersion neededLldbVersion; mutable LldbVersion neededLldbVersion;
mutable QtVersion neededQtVersion; // HEX! 0x50300 mutable QtVersion neededQtVersion; // HEX! 0x50300
mutable GccVersion neededGccVersion; // DEC. 40702 mutable GccVersion neededGccVersion; // DEC. 40702
mutable BoostVersion neededBoostVersion; // ((BOOST_VERSION >> 20) & 0xF) << "."
// << ((BOOST_VERSION >> 8) & 0xFFF) << "."
// << (BOOST_VERSION & 0xFF)
}; };
class Data : public DataBase class Data : public DataBase
...@@ -641,6 +651,12 @@ public: ...@@ -641,6 +651,12 @@ public:
return *this; return *this;
} }
const Data &operator+(const BoostVersion &boostVersion) const
{
neededBoostVersion = boostVersion;
return *this;
}
const Data &operator+(const DebuggerEngine &enginesForTest) const const Data &operator+(const DebuggerEngine &enginesForTest) const
{ {
engines = enginesForTest; engines = enginesForTest;
...@@ -5049,6 +5065,8 @@ GdbEngine ...@@ -5049,6 +5065,8 @@ GdbEngine
"s2.insert(\"def\");\n") "s2.insert(\"def\");\n")
+ BoostProfile() + BoostProfile()
+ BoostVersion((1u<<20) + (42u<<8)) // FIXME: Not checked
+ GdbVersion(70600) // Crude replacement instead
+ Check("s1", "<2 items>", "boost::unordered::unordered_set<int>") + Check("s1", "<2 items>", "boost::unordered::unordered_set<int>")
+ Check("s1.0", "[0]", "22", "int") + Check("s1.0", "[0]", "22", "int")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment