Skip to content

Commit

Permalink
Drop hard-coded /tmp/ dir, use system temporary dir instead
Browse files Browse the repository at this point in the history
This is an amended cherry-pick of commit da11a8a
which was reverted in commit a0e6e16 by Nyall Dawson

The amendment is a fix in QString syntax as spotted by Nyall
in
#57606 (review)
  • Loading branch information
strk committed Jun 29, 2024
1 parent 7634719 commit 9179b43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/src/3d/testqgs3drendering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ void TestQgs3DRendering::do3DSceneExport( int zoomLevelsCount, int expectedObjec
exporter.setScale( 1.0 );

QVERIFY( exporter.parseVectorLayerEntity( scene->layerEntity( layerPoly ), layerPoly ) );
exporter.save( QString( "test3DSceneExporter-%1" ).arg( zoomLevelsCount ), "/tmp/" );
exporter.save( QString( "test3DSceneExporter-%1" ).arg( zoomLevelsCount ), QDir::tempPath() );

int sum = 0;
for ( auto o : exporter.mObjects )
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgslabelingengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4346,7 +4346,7 @@ void TestQgsLabelingEngine::labelingResultsWithCallouts()
job.start();
job.waitForFinished();

job.renderedImage().save( QStringLiteral( "/tmp/renderer.png" ) );
job.renderedImage().save( QString( "%1/renderer.png" ).arg( QDir::tempPath() ) );

std::unique_ptr< QgsLabelingResults > results( job.takeLabelingResults() );
QVERIFY( results );
Expand Down

0 comments on commit 9179b43

Please sign in to comment.