summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2022-08-24 09:21:03 +0200
committerMichal Klocek <michal.klocek@qt.io>2022-09-15 14:44:10 +0000
commit30f2d86426c674d0cba9ca88dbf7e587c57e72d3 (patch)
tree8ebed8047ada861851443f5e392a39a8b90fe886 /tests
parentfd1e82d0c09c73e42f172ffdf7edbcc952232155 (diff)
Fix locally falling tst_qpdfdocument on qemu
Use name for temporary file otherwise is can not be opened on qemu. Task-number: QTBUG-105342 Pick-to: 6.4 6.3 Change-Id: I7f9ed244c32b866ead6832ed942e2293be24811b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp b/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp
index a481ee57c..975708f65 100644
--- a/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp
+++ b/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp
@@ -54,7 +54,7 @@ struct TemporaryPdf: public QTemporaryFile
};
-TemporaryPdf::TemporaryPdf()
+TemporaryPdf::TemporaryPdf():QTemporaryFile(QStringLiteral("qpdfdocument"))
{
open();
pageLayout = QPageLayout(QPageSize(QPageSize::A4), QPageLayout::Portrait, QMarginsF());