path: root/tests/auto/corelib/io/qsavefile/
diff options
authorDavid Faure <>2012-12-27 07:42:27 -0500
committerThe Qt Project <>2013-01-17 17:39:11 +0100
commite993df877131cfafbf1a3578dbef233a3041a82f (patch)
tree4913597e2253c029b955a7bd2e0ba1c27f43bc43 /tests/auto/corelib/io/qsavefile/
parente3a10e15ff5a015de28528b5f73316d7aa0de116 (diff)
Add class QSaveFile.
This QIODevice uses a temporary file for writing, so that in case of write errors, the writing operation is canceled, without losing any existing file. It also avoids having a partially-written file visible by other processes, at the final destination. Change-Id: I9482df45751cb890b1b6f1382ec2eea3eb980627 Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'tests/auto/corelib/io/qsavefile/')
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qsavefile/ b/tests/auto/corelib/io/qsavefile/
new file mode 100644
index 0000000000..36db000fa7
--- /dev/null
+++ b/tests/auto/corelib/io/qsavefile/
@@ -0,0 +1,5 @@
+CONFIG += testcase parallel_test
+TARGET = tst_qsavefile
+QT = core testlib
+SOURCES = tst_qsavefile.cpp
+TESTDATA += tst_qsavefile.cpp