Commit d1e45079 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Handle _data() methods for testcases

Reviewed-by: dt
parent d7ac47da
......@@ -513,13 +513,13 @@ void PluginManager::startTests()
methods.append("arg0");
// We only want slots starting with "test"
for (int i = mo->methodOffset(); i < mo->methodCount(); ++i) {
if (QByteArray(mo->method(i).signature()).startsWith("test")) {
if (QByteArray(mo->method(i).signature()).startsWith("test") &&
!QByteArray(mo->method(i).signature()).endsWith("_data()")) {
QString method = QString::fromLatin1(mo->method(i).signature());
methods.append(method.left(method.size()-2));
}
}
QTest::qExec(pluginSpec->plugin(), methods);
}
#endif
}
......
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