summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2022-08-24 09:21:03 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-10-19 17:21:23 +0000
commit1690608b7f2179ad40bbdac9277bdf96816d10c8 (patch)
treeb5d116c5a4d5933f5c3e4bc40a941902f5122671
parent2d0926b587cbf32941973f3e506b1c6de74316d8 (diff)
Fix locally falling tst_qpdfdocument on qemu6.3
Use name for temporary file otherwise is can not be opened on qemu. Task-number: QTBUG-105342 Change-Id: I7f9ed244c32b866ead6832ed942e2293be24811b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 30f2d86426c674d0cba9ca88dbf7e587c57e72d3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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 a0f73bb88..a77906d9b 100644
--- a/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp
+++ b/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp
@@ -89,7 +89,7 @@ struct TemporaryPdf: public QTemporaryFile
};
-TemporaryPdf::TemporaryPdf()
+TemporaryPdf::TemporaryPdf():QTemporaryFile(QStringLiteral("qpdfdocument"))
{
open();
pageLayout = QPageLayout(QPageSize(QPageSize::A4), QPageLayout::Portrait, QMarginsF());