Skip to content

Commit b58b827

Browse files
committed
fix raster render tests - disable .aux.xml files
1 parent 32978fb commit b58b827

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

tests/src/core/testqgsrasterlayer.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ void TestQgsRasterLayer::initTestCase()
7676
// init QGIS's paths - true means that all path will be inited from prefix
7777
QgsApplication::init( QString() );
7878
QgsApplication::initQgis();
79+
// disable any PAM stuff to make sure stats are consistent
80+
CPLSetConfigOption( "GDAL_PAM_ENABLED", "NO" );
7981
QString mySettings = QgsApplication::showSettings();
8082
mySettings = mySettings.replace( "\n", "<br />" );
8183
//create some objects that will be used in all tests...
@@ -197,7 +199,8 @@ void TestQgsRasterLayer::checkStats()
197199
QVERIFY( mpRasterLayer->bandStatistics( 1 ).minimumValue == 0 );
198200
QVERIFY( mpRasterLayer->bandStatistics( 1 ).maximumValue == 9 );
199201
QVERIFY( mpRasterLayer->bandStatistics( 1 ).mean == 4.5 );
200-
QVERIFY( mpRasterLayer->bandStatistics( 1 ).stdDev == 2.872281323269 );
202+
QVERIFY( fabs( mpRasterLayer->bandStatistics( 1 ).stdDev - 2.87228132326901431 )
203+
< 0.0000000000000001 );
201204
mReport += "<h2>Check Stats</h2>\n";
202205
mReport += "<p>Passed</p>";
203206
}
Loading

tests/testdata/tenbytenraster.asc.aux.xml

-13
This file was deleted.

0 commit comments

Comments
 (0)