Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-05-27 05:19:06 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-05-27 05:19:06 +0300
commitf785afc64d73e04ea7675f3b245e6789b341c57e (patch)
tree940c3ec5eb88d7a770fc69f5f8127b27bbbd715e /test/tests/shared_fs_mutex.cpp
parent89f1d8a7c4c2c41dc1f52c7fbc93c59995460c6f (diff)
Use new POSIX-delete syscall when on Windows 10 1709 or later.
Rename unlink_on_close to unlink_on_first_close.
Diffstat (limited to 'test/tests/shared_fs_mutex.cpp')
-rw-r--r--test/tests/shared_fs_mutex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tests/shared_fs_mutex.cpp b/test/tests/shared_fs_mutex.cpp
index eceaf6af..9786e12d 100644
--- a/test/tests/shared_fs_mutex.cpp
+++ b/test/tests/shared_fs_mutex.cpp
@@ -420,7 +420,7 @@ else. Verify shared allows other shared.
void TestSharedFSMutexCorrectness(shared_memory::mutex_kind_type mutex_kind, shared_memory::test_type testtype, bool threads_not_processes)
{
namespace afio = AFIO_V2_NAMESPACE;
- auto shared_mem_file = afio::file_handle::file({}, "shared_memory", afio::file_handle::mode::write, afio::file_handle::creation::if_needed, afio::file_handle::caching::temporary, afio::file_handle::flag::unlink_on_close).value();
+ auto shared_mem_file = afio::file_handle::file({}, "shared_memory", afio::file_handle::mode::write, afio::file_handle::creation::if_needed, afio::file_handle::caching::temporary, afio::file_handle::flag::unlink_on_first_close).value();
shared_mem_file.truncate(sizeof(shared_memory)).value();
auto shared_mem_file_section = afio::section_handle::section(shared_mem_file, sizeof(shared_memory), afio::section_handle::flag::readwrite).value();
auto shared_mem_file_map = afio::map_handle::map(shared_mem_file_section).value();
@@ -510,7 +510,7 @@ and destructing the lock. This should find interesting races in the more complex
static void TestSharedFSMutexConstructDestruct(shared_memory::mutex_kind_type mutex_kind)
{
namespace afio = AFIO_V2_NAMESPACE;
- auto shared_mem_file = afio::file_handle::file({}, "shared_memory", afio::file_handle::mode::write, afio::file_handle::creation::if_needed, afio::file_handle::caching::temporary, afio::file_handle::flag::unlink_on_close).value();
+ auto shared_mem_file = afio::file_handle::file({}, "shared_memory", afio::file_handle::mode::write, afio::file_handle::creation::if_needed, afio::file_handle::caching::temporary, afio::file_handle::flag::unlink_on_first_close).value();
shared_mem_file.truncate(sizeof(shared_memory)).value();
auto shared_mem_file_section = afio::section_handle::section(shared_mem_file, sizeof(shared_memory), afio::section_handle::flag::readwrite).value();
auto shared_mem_file_map = afio::map_handle::map(shared_mem_file_section).value();