Skip to content
Permalink
Browse files
Fixed bug in unit test that prevented some files being cleaned up
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7224 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 27, 2007
1 parent 5368b8d commit a5b947f1c28bc8f37be56b5f6308ac8591a58950
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/core/testqgsvectorfilewriter.cpp
@@ -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;
@@ -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;
@@ -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;

0 comments on commit a5b947f

Please sign in to comment.