Actions
Bug #679
closeddifficulties testing filedownloader
Start date:
31/03/2016
Due date:
% Done:
0%
Estimated time:
revision:
r0
blocked:
No
Sprint:
Description
While attempting to test DownloadFile() from FileDownloader, I get the following error message :
QScriptEngine: Must construct a Q(Core)Application before a QScriptEngine
It seems that ProxyPacParser (called by QLopNetworkProxyFactory) create a QScriptEngine that need a QCoreApplication to be working.
Unfortunately, the Test API doesn't provide it .
Updated by Alexis Jeandet over 8 years ago
QTEST_MAIN doesn't build a QCoreApplication, that's normal. If you need one then build one:
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
YOURTESTCLASS instance;
QTest::qExec(&instance, argc, argv);
}
Updated by Nicolas Aunai about 7 years ago
- Status changed from Resolved to Closed
- Assignee set to Nicolas Aunai
Actions