aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-08-27 09:47:14 +0200
committerEike Ziller <eike.ziller@qt.io>2019-08-27 09:47:14 +0200
commit38feea7e253636396fa629fe25a17819fccaa4ab (patch)
tree45589f004d155007483e12ee2b055145886cd76c /tests/auto
parent835477b52fd03608d389d00c91dcee6c7f378d63 (diff)
parent309e345818063507ed5bcd8151d670ebd43b6b9c (diff)
Merge remote-tracking branch 'origin/4.10'
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/debugger/tst_dumpers.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp
index 4e5db36d36..f1413dee6a 100644
--- a/tests/auto/debugger/tst_dumpers.cpp
+++ b/tests/auto/debugger/tst_dumpers.cpp
@@ -4692,10 +4692,7 @@ void tst_Dumpers::dumper_data()
"std::set<double> s0;\n"
"unused(&s0);\n\n"
- "std::set<int> s1;\n"
- "s1.insert(11);\n"
- "s1.insert(22);\n"
- "s1.insert(33);\n"
+ "std::set<int> s1{11, 22, 33, 44, 55, 66, 77, 88};\n"
"unused(&s1);\n\n"
"typedef std::set<int> Set;\n"
@@ -4716,9 +4713,13 @@ void tst_Dumpers::dumper_data()
"s3.insert(3);\n"
"s3.insert(3);\n")
+ + Cxx11Profile()
+ Check("s0", "<0 items>", "std::set<double>")
- + Check("s1", "<3 items>", "std::set<int>")
+ + Check("s1", "<8 items>", "std::set<int>")
+ + Check("s1.0", "[0]", "11", "int")
+ + Check("s1.1", "[1]", "22", "int")
+ + Check("s1.5", "[5]", "66", "int")
+ Check("s2", "<3 items>", TypeDef("std::set<int>", "Set"))
+ Check("it1.value", "11", "int")