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>2017-04-13 20:04:24 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2017-04-13 20:04:24 +0300
commitbbead0b40da633db4cc9e8b08d42468f68289752 (patch)
tree79ddbeff8a73dace43fcc0eacf17c5211d2411e7 /test/tests/shared_fs_mutex.cpp
parent75a7da44ccbf88f544b34a8a09def654d22cf996 (diff)
It's very nearly passing all tests on POSIX now, just child_process is failing to wait on child processes sometimes.
Diffstat (limited to 'test/tests/shared_fs_mutex.cpp')
-rw-r--r--test/tests/shared_fs_mutex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/tests/shared_fs_mutex.cpp b/test/tests/shared_fs_mutex.cpp
index b38936fb..0d76557e 100644
--- a/test/tests/shared_fs_mutex.cpp
+++ b/test/tests/shared_fs_mutex.cpp
@@ -342,6 +342,7 @@ void TestSharedFSMutexCorrectness(shared_memory::mutex_kind_type mutex_kind, sha
namespace kerneltest = BOOST_KERNELTEST_V1_NAMESPACE;
namespace afio = BOOST_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).get();
+ shared_mem_file.truncate(sizeof(shared_memory));
auto shared_mem_file_section = afio::section_handle::section(sizeof(shared_memory), shared_mem_file, afio::section_handle::flag::readwrite).get();
auto shared_mem_file_map = afio::map_handle::map(shared_mem_file_section).get();
shared_memory *shmem = (shared_memory *) shared_mem_file_map.address();