Skip to content

Commit 85f29ed

Browse files
committed
fix qgsauthmanager test on windows
(cherry picked from commit 0799e09)
1 parent 4abff04 commit 85f29ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/core/testqgsauthmanager.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,16 @@ void TestQgsAuthManager::cleanupTempDir()
136136
{
137137
Q_FOREACH ( const QString &tf, tmpDir.entryList( QDir::NoDotAndDotDot | QDir::Files ) )
138138
{
139-
QVERIFY( tmpDir.remove( mTempDir + "/" + tf ) );
139+
QVERIFY2( tmpDir.remove( mTempDir + "/" + tf ), qPrintable( "Could not remove " + mTempDir + "/" + tf ) );
140140
}
141-
QVERIFY( tmpDir.rmdir( mTempDir ) );
141+
QVERIFY2( tmpDir.rmdir( mTempDir ), qPrintable( "Could not remove directory " + mTempDir ) );
142142
}
143143
}
144144

145145
void TestQgsAuthManager::cleanupTestCase()
146146
{
147-
cleanupTempDir();
148147
QgsApplication::exitQgis();
148+
cleanupTempDir();
149149

150150
QString myReportFile = QDir::tempPath() + "/qgistest.html";
151151
QFile myFile( myReportFile );

0 commit comments

Comments
 (0)