diff options
author | David Faure <faure+bluesystems@kde.org> | 2013-02-03 12:00:50 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-05 06:26:33 +0100 |
commit | 1b582d64eb6d13e60a02ebc40956302a4864eb6c (patch) | |
tree | 45a3ce2c245acf5caf156d11203da7e69dfba7cd /tests/auto/corelib/io/qlockfile/tst_qlockfile.pro | |
parent | 6f8bc4de406be856eeba9e62700888941ccfdcc1 (diff) |
Long live QLockFile
Locking between processes, implemented with open(O_EXCL) on Unix
and CreateFile(CREATE_NEW) on Windows.
Supports detecting stale lock files and deleting them.
Advisory locking is used to prevent deletion of files that are still in use.
Change-Id: Id00ee2a4e77a29483d869037c7047c59cb909339
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/io/qlockfile/tst_qlockfile.pro')
-rw-r--r-- | tests/auto/corelib/io/qlockfile/tst_qlockfile.pro | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qlockfile/tst_qlockfile.pro b/tests/auto/corelib/io/qlockfile/tst_qlockfile.pro new file mode 100644 index 0000000000..2f7009b736 --- /dev/null +++ b/tests/auto/corelib/io/qlockfile/tst_qlockfile.pro @@ -0,0 +1,6 @@ +CONFIG += testcase +CONFIG -= app_bundle +TARGET = tst_qlockfile +SOURCES += tst_qlockfile.cpp + +QT = core testlib concurrent |