diff options
author | Liang Qi <liang.qi@qt.io> | 2016-09-29 07:42:39 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2016-09-29 07:42:39 +0000 |
commit | 75aea3ff5eec4a5c8f4184e14a90f4a5e3a577b0 (patch) | |
tree | fcf23325ec038627de8861c9e8f9a4aa2223feef /tests/auto/xml/dom/qdom/tst_qdom.cpp | |
parent | 433e5ccf507fc153db589df80655618f241af0c3 (diff) | |
parent | cdb56c42fc1145ad25560720fb95df2bfa760a20 (diff) |
Merge "Merge remote-tracking branch 'origin/5.7' into 5.8" into refs/staging/5.8
Diffstat (limited to 'tests/auto/xml/dom/qdom/tst_qdom.cpp')
-rw-r--r-- | tests/auto/xml/dom/qdom/tst_qdom.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/xml/dom/qdom/tst_qdom.cpp b/tests/auto/xml/dom/qdom/tst_qdom.cpp index f46d58513e..b09a3447e3 100644 --- a/tests/auto/xml/dom/qdom/tst_qdom.cpp +++ b/tests/auto/xml/dom/qdom/tst_qdom.cpp @@ -1718,14 +1718,14 @@ void tst_QDom::germanUmlautToFile() const QDomDocument d("test"); d.appendChild(d.createElement(name)); - QFile file("germanUmlautToFile.xml"); - QVERIFY(file.open(QIODevice::WriteOnly)); + QTemporaryFile file; + QVERIFY(file.open()); QTextStream ts(&file); ts.setCodec("UTF-8"); ts << d.toString(); file.close(); - QFile inFile("germanUmlautToFile.xml"); + QFile inFile(file.fileName()); QVERIFY(inFile.open(QIODevice::ReadOnly)); QString baseline(QLatin1String("<!DOCTYPE test>\n<german")); |