Commit 085f6b2c authored by hjk's avatar hjk
Browse files

debugger: add autotest for QList<int *> dumper

parent 66a35306
...@@ -145,6 +145,7 @@ private slots: ...@@ -145,6 +145,7 @@ private slots:
void dumpQImageData(); void dumpQImageData();
void dumpQLinkedList(); void dumpQLinkedList();
void dumpQList_int(); void dumpQList_int();
void dumpQList_int_star();
void dumpQList_char(); void dumpQList_char();
void dumpQList_QString(); void dumpQList_QString();
void dumpQList_QString3(); void dumpQList_QString3();
...@@ -1392,6 +1393,22 @@ void tst_Debugger::dumpQList_int() ...@@ -1392,6 +1393,22 @@ void tst_Debugger::dumpQList_int()
&ilist, NS"QList", true, "int"); &ilist, NS"QList", true, "int");
} }
void tst_Debugger::dumpQList_int_star()
{
QList<int *> ilist;
testDumper("value='<0 items>',valueeditable='false',numchild='0',"
"internal='1',children=[]",
&ilist, NS"QList", true, "int*");
ilist.append(new int(1));
ilist.append(0);
testDumper("value='<2 items>',valueeditable='false',numchild='2',"
"internal='1',childtype='int*',childnumchild='1',children=["
"{saddr='" + str(&ilist.at(0)) + "',addr='" + str(deref(&ilist.at(0))) +
"',type='int',value='1'},"
"{saddr='" + str(&ilist.at(1)) + "',value='<null>',numchild='0'}]",
&ilist, NS"QList", true, "int*");
}
void tst_Debugger::dumpQList_char() void tst_Debugger::dumpQList_char()
{ {
QList<char> clist; QList<char> clist;
......
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