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);
|
||||
|
||||
QDir d(templatesDir);
|
||||
QStringList files = d.entryList(QStringList() << "*.grantlee", QDir::Files);
|
||||
QStringList files = d.entryList(QStringList() << QStringLiteral("*.grantlee"), QDir::Files);
|
||||
if (files.isEmpty()) {
|
||||
qDebug() << "No .grantlee templates found in" << templatesDir;
|
||||
// Treat absence as successful parse (nothing to check) to avoid failing
|
||||
@@ -43,7 +43,7 @@ int main(int argc, char **argv)
|
||||
ok = false;
|
||||
continue;
|
||||
}
|
||||
if (t->error() != Grantlee::TemplateImpl::Error::NoError) {
|
||||
if (t->error() != Grantlee::NoError) {
|
||||
qDebug() << "Parse error in" << f << ":" << t->errorString();
|
||||
ok = false;
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user