Skip to content

Commit 95f6483

Browse files
committedNov 21, 2014
Fix some race condition segfaults of tests on exit
1 parent 78c5195 commit 95f6483

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+109
-25
lines changed
 

‎tests/src/analysis/testqgsvectoranalyzer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void TestQgsVectorAnalyzer::initTestCase()
7878
}
7979
void TestQgsVectorAnalyzer::cleanupTestCase()
8080
{
81-
81+
QgsApplication::exitQgis();
8282
}
8383
void TestQgsVectorAnalyzer::init()
8484
{

‎tests/src/analysis/testqgszonalstatistics.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class TestQgsZonalStatistics: public QObject
2828
Q_OBJECT;
2929
private slots:
3030
void initTestCase();
31-
void cleanupTestCase() {};
31+
void cleanupTestCase();
3232
void init() {};
3333
void cleanup() {};
3434

@@ -62,6 +62,11 @@ void TestQgsZonalStatistics::initTestCase()
6262
mRasterPath = myTempPath + "edge_problem.asc";
6363
}
6464

65+
void TestQgsZonalStatistics::cleanupTestCase()
66+
{
67+
QgsApplication::exitQgis();
68+
}
69+
6570
void TestQgsZonalStatistics::testStatistics()
6671
{
6772
QgsZonalStatistics zs( mVectorLayer, mRasterPath, "", 1 );

0 commit comments

Comments
 (0)
Please sign in to comment.