diff options
author | hjk <qtc-committer@nokia.com> | 2011-06-22 13:16:29 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2011-06-22 14:00:16 +0200 |
commit | 96d19ffff0fb9c48a0baeee4dfb980eeb65fe681 (patch) | |
tree | cc56a5347996d583f59d51f680fd52af3a83a3cb /tests | |
parent | 0d3802aea7d2e522b9c08e94aabd16fd13c4163c (diff) |
debugger: update manual tests
Task-number: QTCREATORBUG-5184, QTCREATORBUG-5106
Change-Id: Icc43f534755f897eeea5333186b84fec91dbb8c0
Reviewed-on: http://codereview.qt.nokia.com/606
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp index 89df2f844da..3fc4ae1c013 100644 --- a/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp +++ b/tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp @@ -139,7 +139,7 @@ namespace multibp { public: explicit Vector(int size) : m_size(size), m_data(new T[size]) - {} // put breakpoint here + {} // <=== break here ~Vector() { delete [] m_data; } int size() const { return m_size; } private: @@ -2678,13 +2678,15 @@ namespace bug4019 { } // namespave bug4019 -namespace bug4497 { // http://bugreports.qt.nokia.com/browse/QTCREATORBUG-4497 +namespace bug4497 { + + // http://bugreports.qt.nokia.com/browse/QTCREATORBUG-4497 void test4497() { using namespace std; //cin.get(); // if commented out, the debugger doesn't stop at the breakpoint in the next line. - cout << "Hello, world!" << endl; // breakpoint + cout << "Hello, world!" << endl; // <=== break here int sum = 0; for (int i = 1; i <= 10; i++) @@ -2701,7 +2703,7 @@ namespace bug4497 { // http://bugreports.qt.nokia.com/browse/QTCREATORBUG-4497 namespace bug5106 { - // http://bugreports.qt.nokia.com/browse/QTCREATORBUG-4497 + // http://bugreports.qt.nokia.com/browse/QTCREATORBUG-5106 class A5106 { @@ -2719,7 +2721,7 @@ namespace bug5106 { public: B5106(int c, int a, int b) : A5106(a, b), m_c(c) {} - virtual int test() { return 4; } + virtual int test() { return 4; } // <=== break here private: int m_c; @@ -2729,7 +2731,7 @@ namespace bug5106 { { B5106 b(1,2,3); b.test(); - b.test(); + b.A5106::test(); } } // namespace bug5106 @@ -2739,14 +2741,23 @@ namespace bug5184 { // http://bugreports.qt.nokia.com/browse/QTCREATORBUG-5184 - int test5184() + // Note: The report there shows type field "QUrl &" instead of QUrl. + // It's unclear how this can happen. It should never have been like + // that with a stock 7.2 and any version of Creator. + + int helper(const QUrl &url) { - QUrl url(QString("http://127.0.0.1/")); QNetworkRequest request(url); QList<QByteArray> raw = request.rawHeaderList(); return raw.size(); // <=== break here } + void test5184() + { + QUrl url(QString("http://127.0.0.1/")); + helper(url); + } + } // namespace bug5184 @@ -2777,7 +2788,7 @@ namespace qc42170 { int helper(Object *obj) { - return 0; // <== break point here + return 0; // <== break here } void test42170() |