test(grantlee): adjust smoke test for Qt6 API and Grantlee error enum (use QStringLiteral and Grantlee::NoError)
This commit is contained in:
1 parent
f783b6e590
commit
dd85b9f5a8
1 file changed
+2
-2
@@ -20,7 +20,7 @@ int main(int argc, char **argv)
|
|||||||
engine.addTemplateLoader(loader);
|
engine.addTemplateLoader(loader);
|
||||||
|
|
||||||
QDir d(templatesDir);
|
QDir d(templatesDir);
|
||||||
QStringList files = d.entryList(QStringList() << "*.grantlee", QDir::Files);
|
QStringList files = d.entryList(QStringList() << QStringLiteral("*.grantlee"), QDir::Files);
|
||||||
if (files.isEmpty()) {
|
if (files.isEmpty()) {
|
||||||
qDebug() << "No .grantlee templates found in" << templatesDir;
|
qDebug() << "No .grantlee templates found in" << templatesDir;
|
||||||
// Treat absence as successful parse (nothing to check) to avoid failing
|
// Treat absence as successful parse (nothing to check) to avoid failing
|
||||||
@@ -43,7 +43,7 @@ int main(int argc, char **argv)
|
|||||||
ok = false;
|
ok = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (t->error() != Grantlee::TemplateImpl::Error::NoError) {
|
if (t->error() != Grantlee::NoError) {
|
||||||
qDebug() << "Parse error in" << f << ":" << t->errorString();
|
qDebug() << "Parse error in" << f << ":" << t->errorString();
|
||||||
ok = false;
|
ok = false;
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in new issue
Block a user