forked from qt-creator/qt-creator
Debugger: Make boost::container::list autotest pass again
... by adjusting the expectations on the exact type display and trying two possible versions of structure member names. Change-Id: I817aeb787b905cb22c6f68856043a29db3e79e59 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -103,7 +103,11 @@ def qdump__boost__container__list(d, value):
|
||||
innerType = d.templateArgument(value.type, 0)
|
||||
offset = 2 * d.ptrSize()
|
||||
with Children(d, n):
|
||||
p = r["root_"]["next_"]
|
||||
try:
|
||||
root = r["root_"]
|
||||
except:
|
||||
root = r["m_header"]
|
||||
p = root["next_"]
|
||||
for i in xrange(n):
|
||||
d.putSubItem("%s" % i, d.createValue(d.pointerValue(p) + offset, innerType))
|
||||
p = p["next_"]
|
||||
|
||||
@@ -5252,7 +5252,7 @@ void tst_Dumpers::dumper_data()
|
||||
"l.push_back(p(15, 65));\n"
|
||||
"l.push_back(p(16, 66));\n")
|
||||
+ BoostProfile()
|
||||
+ Check("l", "<4 items>", "boost::container::list<std::pair<int,double>>")
|
||||
+ Check("l", "<4 items>", Pattern("boost::container::list<std::pair<int,double>.*>"))
|
||||
+ Check("l.2.second", "65", "double");
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user