diff --git a/tests/auto/qml/qqmllistmodelworkerscript/tst_qqmllistmodelworkerscript.cpp b/tests/auto/qml/qqmllistmodelworkerscript/tst_qqmllistmodelworkerscript.cpp index d47505b1ae..af8013edfb 100644 --- a/tests/auto/qml/qqmllistmodelworkerscript/tst_qqmllistmodelworkerscript.cpp +++ b/tests/auto/qml/qqmllistmodelworkerscript/tst_qqmllistmodelworkerscript.cpp @@ -578,7 +578,7 @@ void tst_qqmllistmodelworkerscript::property_changes_worker() QQmlExpression expr(engine.rootContext(), &model, script_setup); expr.evaluate(); - QVERIFY2(!expr.hasError(), QTest::toString(expr.error().toString())); + QVERIFY2(!expr.hasError(), qPrintable(expr.error().toString())); QSignalSpy spyItemsChanged(&model, SIGNAL(dataChanged(QModelIndex,QModelIndex,QList)));