tst_QNetworkReply: Don't remove file if never created
If we end up QSKIP'ing the test 'wronlyFileName' is never created. Change-Id: I2ccbfdb630b58d7904e73b476a65a82a45ab90d7 Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
This commit is contained in:
parent
39e04b0222
commit
d4ec6331bb
@ -1416,7 +1416,8 @@ void tst_QNetworkReply::initTestCase()
|
||||
void tst_QNetworkReply::cleanupTestCase()
|
||||
{
|
||||
#if !defined Q_OS_WIN
|
||||
QFile::remove(wronlyFileName);
|
||||
if (!wronlyFileName.isNull())
|
||||
QFile::remove(wronlyFileName);
|
||||
#endif
|
||||
#ifndef QT_NO_BEARERMANAGEMENT
|
||||
if (networkSession && networkSession->isOpen()) {
|
||||
|
Loading…
Reference in New Issue
Block a user