From f3830c68b1f50e671dde7ef3d68cde4827d3aeb5 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 26 Nov 2020 10:35:50 +0100 Subject: [PATCH] Debugger: Fix dumper test using QVector QVector is a typedef to QList in Qt6 so cdb reports vector types as QList Change-Id: Ic1940bc9e3286906c42d29a9c29882b5b3699312 Reviewed-by: hjk --- tests/auto/debugger/tst_dumpers.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 4cf08d3b924..8a4fc4b6cd1 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -4405,40 +4405,40 @@ void tst_Dumpers::dumper_data() + BigArrayProfile() - + Check("v1", "<10000 items>", "@QVector") + + Check("v1", "<10000 items>", TypePattern("@QList|@QVector")) + Check("v1.0", "[0]", "0", "int") + Check("v1.8999", "[8999]", "80982001", "int") - + Check("v2", "<2 items>", "@QVector") + + Check("v2", "<2 items>", TypePattern("@QList|@QVector")) + Check("v2.0", "[0]", "", "Foo") + Check("v2.0.a", "1", "int") + Check("v2.1", "[1]", "", "Foo") + Check("v2.1.a", "2", "int") - + Check("v3", "<2 items>", TypeDef("@QVector", "FooVector")) + + Check("v3", "<2 items>", TypePattern("@QVector|@QList|FooVector")) + Check("v3.0", "[0]", "", "Foo") + Check("v3.0.a", "1", "int") + Check("v3.1", "[1]", "", "Foo") + Check("v3.1.a", "2", "int") - + Check("v4", "<3 items>", "@QVector") + + Check("v4", "<3 items>", TypePattern("@QList|@QVector")) + CheckType("v4.0", "[0]", "Foo") + Check("v4.0.a", "1", "int") + Check("v4.1", "[1]", "0x0", "Foo *") + CheckType("v4.2", "[2]", "Foo") + Check("v4.2.a", "5", "int") - + Check("v5", "<2 items>", "@QVector") + + Check("v5", "<2 items>", TypePattern("@QList|@QVector")) + Check("v5.0", "[0]", "1", "bool") + Check("v5.1", "[1]", "0", "bool") - + CheckType("pv", "@QVector<@QList>") + + CheckType("pv", TypePattern("@QList<@QList>|@QVector<@QList>")) + Check("pv.0", "[0]", "<1 items>", "@QList") + Check("pv.0.0", "[0]", "1", "int") + Check("pv.1", "[1]", "<2 items>", "@QList") + Check("pv.1.0", "[0]", "2", "int") + Check("pv.1.1", "[1]", "3", "int") - + Check("v6", "<2 items>", "@QVector<@QList>") + + Check("v6", "<2 items>", TypePattern("@QList<@QList>|@QVector<@QList>")) + Check("v6.0", "[0]", "<1 items>", "@QList") + Check("v6.0.0", "[0]", "1", "int") + Check("v6.1", "[1]", "<2 items>", "@QList")