summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-03-05 13:42:11 +0100
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-03-05 13:42:11 +0100
commit5e8ae03578ecd0538a774505f2f7e2fc626b0ab7 (patch)
tree3b6f704df4d55d0ed2a5a706acf785541a74a45e /tests/auto/tools
parent7a5fea113ec6088135b0b6a0fc4297e0ef362bc5 (diff)
parentbe3fb9afe50361e4b35d02d28ef30851335b17b6 (diff)
Merge remote-tracking branch 'origin/stable' into dev
Conflicts: configure qmake/generators/mac/pbuilder_pbx.cpp src/corelib/kernel/qtimerinfo_unix.cpp src/plugins/platforms/cocoa/qcocoabackingstore.mm src/plugins/platforms/cocoa/qcocoawindow.mm src/plugins/platforms/windows/qwindowswindow.cpp src/plugins/platforms/xcb/qglxintegration.cpp Change-Id: I8d125fe498f5304874e6976b53f588d3e98a66ac
Diffstat (limited to 'tests/auto/tools')
-rw-r--r--tests/auto/tools/moc/parse-defines.h5
-rw-r--r--tests/auto/tools/moc/tst_moc.cpp4
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/auto/tools/moc/parse-defines.h b/tests/auto/tools/moc/parse-defines.h
index 3e5841835d..f12899e368 100644
--- a/tests/auto/tools/moc/parse-defines.h
+++ b/tests/auto/tools/moc/parse-defines.h
@@ -76,6 +76,9 @@
#endif
+#define PD_ADD_SUFFIX(x) PD_DEFINE1(x,_SUFFIX)
+#define PD_DEFINE_ITSELF PD_ADD_SUFFIX(PD_DEFINE_ITSELF)
+
PD_BEGIN_NAMESPACE
class PD_CLASSNAME : public QObject
@@ -128,6 +131,8 @@ public slots:
void conditionSlot() {}
#endif
+ void PD_DEFINE_ITSELF(int) {}
+
};
#undef QString
diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp
index 382ee36d37..5fc46d195b 100644
--- a/tests/auto/tools/moc/tst_moc.cpp
+++ b/tests/auto/tools/moc/tst_moc.cpp
@@ -2936,7 +2936,6 @@ void tst_Moc::parseDefines()
}
if (!qstrcmp(mci.name(), "TestString2")) {
++count;
- qDebug() << mci.value();
QVERIFY(!qstrcmp(mci.value(), "ParseDefine"));
}
if (!qstrcmp(mci.name(), "TestString3")) {
@@ -2945,6 +2944,9 @@ void tst_Moc::parseDefines()
}
}
QVERIFY(count == 3);
+
+ index = mo->indexOfSlot("PD_DEFINE_ITSELF_SUFFIX(int)");
+ QVERIFY(index != -1);
}
void tst_Moc::preprocessorOnly()