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:
hjk
2015-11-05 18:34:54 +01:00
parent 7be5ef0f5c
commit a4a9529403
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -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_"]
+1 -1
View File
@@ -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");