Commit 96d19fff authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: update manual tests

Task-number: QTCREATORBUG-5184, QTCREATORBUG-5106
Change-Id: Icc43f534755f897eeea5333186b84fec91dbb8c0
Reviewed-on: http://codereview.qt.nokia.com/606

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 0d3802ae
......@@ -2500,9 +2500,9 @@ if False:
if True:
def qdump__A5106(d, item):
if False:
def qdump__bug5106__A5106(d, item):
d.putName("a")
d.putValue(item.value["m_a"])
d.putValue("This is the value: %s" % item.value["m_a"])
d.putType(" ")
d.putNumChild(0)
......@@ -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()
......
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