Skip to content

Commit

Permalink
fix raster render tests - disable .aux.xml files
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennesky committed Jul 17, 2012
1 parent 32978fb commit b58b827
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
5 changes: 4 additions & 1 deletion tests/src/core/testqgsrasterlayer.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ void TestQgsRasterLayer::initTestCase()
// init QGIS's paths - true means that all path will be inited from prefix // init QGIS's paths - true means that all path will be inited from prefix
QgsApplication::init( QString() ); QgsApplication::init( QString() );
QgsApplication::initQgis(); QgsApplication::initQgis();
// disable any PAM stuff to make sure stats are consistent
CPLSetConfigOption( "GDAL_PAM_ENABLED", "NO" );
QString mySettings = QgsApplication::showSettings(); QString mySettings = QgsApplication::showSettings();
mySettings = mySettings.replace( "\n", "<br />" ); mySettings = mySettings.replace( "\n", "<br />" );
//create some objects that will be used in all tests... //create some objects that will be used in all tests...
Expand Down Expand Up @@ -197,7 +199,8 @@ void TestQgsRasterLayer::checkStats()
QVERIFY( mpRasterLayer->bandStatistics( 1 ).minimumValue == 0 ); QVERIFY( mpRasterLayer->bandStatistics( 1 ).minimumValue == 0 );
QVERIFY( mpRasterLayer->bandStatistics( 1 ).maximumValue == 9 ); QVERIFY( mpRasterLayer->bandStatistics( 1 ).maximumValue == 9 );
QVERIFY( mpRasterLayer->bandStatistics( 1 ).mean == 4.5 ); QVERIFY( mpRasterLayer->bandStatistics( 1 ).mean == 4.5 );
QVERIFY( mpRasterLayer->bandStatistics( 1 ).stdDev == 2.872281323269 ); QVERIFY( fabs( mpRasterLayer->bandStatistics( 1 ).stdDev - 2.87228132326901431 )
< 0.0000000000000001 );
mReport += "<h2>Check Stats</h2>\n"; mReport += "<h2>Check Stats</h2>\n";
mReport += "<p>Passed</p>"; mReport += "<p>Passed</p>";
} }
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions tests/testdata/tenbytenraster.asc.aux.xml

This file was deleted.

0 comments on commit b58b827

Please sign in to comment.