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:
Tor Arne Vestbø 2013-09-25 10:25:18 +02:00 committed by The Qt Project
parent 39e04b0222
commit d4ec6331bb

View File

@ -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()) {