Commit 7df04793 authored by hjk's avatar hjk
Browse files

Debugger: Make QRegion and QThread dumper test pass on Mac



Both need DYLD_IMAGE_SUFFIX=_debug.

Change-Id: I5f5bb9ce630099a0e06bf261c4c7cc60ba876b9c
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 90e9799f
......@@ -2474,7 +2474,10 @@ void tst_Dumpers::dumper_data()
"region += QRect(300, 300, 400, 500);\n"
"region2 = region;\n"
"unused(&region0, &region1, &region2);\n")
% GuiProfile()
% UseDebugImage()
% Check("region0", Value4("<empty>"), "@QRegion")
% Check("region0", Value5("<0 items>"), "@QRegion")
% Check("region1", "<1 items>", "@QRegion")
......@@ -2491,6 +2494,7 @@ void tst_Dumpers::dumper_data()
% Check("region2.numRects", "2", "int")
% Check("region2.rects", "<2 items>", "@QVector<@QRect>");
QTest::newRow("QSettings")
<< Data("#include <QSettings>\n"
"#include <QCoreApplication>\n"
......@@ -3649,7 +3653,7 @@ void tst_Dumpers::dumper_data()
% Check("pos", "4", "int")
% Check("anc", "1", "int");
QTest::newRow("QThread1")
QTest::newRow("QThread")
<< Data("#include <QThread>\n"
"struct Thread : QThread\n"
"{\n"
......@@ -3660,6 +3664,7 @@ void tst_Dumpers::dumper_data()
" }\n"
" int m_id;\n"
"};\n",
"const int N = 14;\n"
"Thread thread[N];\n"
"for (int i = 0; i != N; ++i) {\n"
......@@ -3670,11 +3675,15 @@ void tst_Dumpers::dumper_data()
"for (int i = 0; i != N; ++i) {\n"
" thread[i].wait();\n"
"}\n")
% CoreProfile()
% UseDebugImage()
% CheckType("this", "Thread")
% Check("this.@1", "[@QThread]", "\"This is thread #3\"", "@QThread")
% Check("this.@1.@1", "[@QObject]", "\"This is thread #3\"", "@QObject");
QTest::newRow("QVariant")
<< Data("#include <QMap>\n"
"#include <QStringList>\n"
......
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