From cd737c7325942d5eb6f386f0731785f5449befd7 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 22 Jun 2011 17:51:59 +0200 Subject: [PATCH] debugger: add some instructions to two manual tests Change-Id: If90fb6348f3431c79552747a572c28cdc68557bf Reviewed-on: http://codereview.qt.nokia.com/633 Reviewed-by: Qt Sanity Bot Reviewed-by: hjk --- .../gdbdebugger/simple/simple_gdbtest_app.cpp | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp index 28b8e0c7ac2..3632702821e 100644 --- a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp +++ b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp @@ -2719,7 +2719,12 @@ namespace bug4904 { cs2.id = -1; map.insert(cs1.id, cs1); map.insert(cs2.id, cs2); - return map.size(); // <=== break here + QMap::iterator it = map.begin(); + int n = map.size(); // <=== break here + // - expand map/[0]/value + // - verify map[0].key == -1 + // - verify map[0].value.id == -1 + return n; } } // namespace bug4904 @@ -2731,12 +2736,16 @@ namespace bug5046 { struct Foo { int a, b, c; }; - void test5046() + int test5046() { Foo f; f.a = 1; - f.a = 2; - f.a = 3; + f.b = 2; + f.c = 3; + f.a = 4; // <= break here + // - pop up main editor tooltip over 'f' + // - verify that the entry is expandable, and expansion works + return f.a; } } // namespace bug5046 @@ -2858,7 +2867,7 @@ namespace qc41700 { m["two"].push_back("1"); m["two"].push_back("2"); m["two"].push_back("3"); - map_t::const_iterator it = m.begin(); // [BP] + map_t::const_iterator it = m.begin(); // <=== break here ++it; ++it; ++it;