Skip to content

Commit

Permalink
Fixed bug in unit test that prevented some files being cleaned up
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@7224 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 27, 2007
1 parent 74b56d3 commit 86269ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/core/testqgsvectorfilewriter.cpp
Expand Up @@ -410,7 +410,7 @@ bool TestQgsVectorFileWriter::cleanupFile(QString theFileBase)
myInfo.setFile(theFileBase + ".shx");
if (myInfo.exists())
{
if(!QFile::remove(theFileBase + ".shx"));
if(!QFile::remove(theFileBase + ".shx"))
{
qDebug("Removing file failed : " + theFileBase.toLocal8Bit() + ".shx");
return false;
Expand All @@ -419,7 +419,7 @@ bool TestQgsVectorFileWriter::cleanupFile(QString theFileBase)
myInfo.setFile(theFileBase + ".dbf");
if (myInfo.exists())
{
if(!QFile::remove(theFileBase + ".dbf"));
if(!QFile::remove(theFileBase + ".dbf"))
{
qDebug("Removing file failed : " + theFileBase.toLocal8Bit() + ".dbf");
return false;
Expand All @@ -428,7 +428,7 @@ bool TestQgsVectorFileWriter::cleanupFile(QString theFileBase)
myInfo.setFile(theFileBase + ".prj");
if (myInfo.exists())
{
if(!QFile::remove(theFileBase + ".prj"));
if(!QFile::remove(theFileBase + ".prj"))
{
qDebug("Removing file failed : " + theFileBase.toLocal8Bit() + ".prj");
return false;
Expand Down

0 comments on commit 86269ad

Please sign in to comment.