diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-04-20 10:57:20 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-04-23 09:59:43 +0000 |
commit | 6545404afad30b60d1a8e9a2abaf301abaf8f6a5 (patch) | |
tree | d83252e4fa3cbb111171c34500334f047f3e04ee /tests/auto/corelib/io/qlockfile/tst_qlockfile.pro | |
parent | 1f2ce78f16a3a8b5d182fbb9c03c373efaa136d8 (diff) |
Windows: Fix QLockFile hanging when file cannot be created.
Return QLockFile::PermissionError when file does not exist, preventing
the stale file detection logic from triggering.
Add Windows-only autotest trying to create a lock file in
a system folder guarded with checks for elevated processes
and UAC virtualization.
Task-number: QTBUG-45631
Change-Id: I1790f8f925660f6bf1df94c2ced901e6ec57cbb0
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
Diffstat (limited to 'tests/auto/corelib/io/qlockfile/tst_qlockfile.pro')
-rw-r--r-- | tests/auto/corelib/io/qlockfile/tst_qlockfile.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qlockfile/tst_qlockfile.pro b/tests/auto/corelib/io/qlockfile/tst_qlockfile.pro index 2f7009b736..6eb72343bc 100644 --- a/tests/auto/corelib/io/qlockfile/tst_qlockfile.pro +++ b/tests/auto/corelib/io/qlockfile/tst_qlockfile.pro @@ -4,3 +4,4 @@ TARGET = tst_qlockfile SOURCES += tst_qlockfile.cpp QT = core testlib concurrent +win32:!wince:!winrt:LIBS += -ladvapi32 |