From fbad0b4e284338ee03dc894e4f45a7f96bd3f6dd Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 18 Apr 2024 10:47:58 +1000 Subject: [PATCH] Fix test on newer GDAL versions --- tests/src/analysis/testqgsprocessing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/src/analysis/testqgsprocessing.cpp b/tests/src/analysis/testqgsprocessing.cpp index 4dfbd740774d..6c50b7bee197 100644 --- a/tests/src/analysis/testqgsprocessing.cpp +++ b/tests/src/analysis/testqgsprocessing.cpp @@ -2744,6 +2744,7 @@ void TestQgsProcessing::parameters() QVERIFY( sink.get() ); QgsVectorFileWriter *writer = dynamic_cast< QgsVectorFileWriter *>( dynamic_cast< QgsProcessingFeatureSink * >( sink.get() )->destinationSink() ); QVERIFY( writer ); + sink.reset(); layer = qobject_cast< QgsVectorLayer *>( QgsProcessingUtils::mapLayerFromString( destId, context ) ); QVERIFY( layer ); QVERIFY( layer->isValid() );