diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-05-27 05:19:06 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2018-05-27 05:19:06 +0300 |
commit | f785afc64d73e04ea7675f3b245e6789b341c57e (patch) | |
tree | 940c3ec5eb88d7a770fc69f5f8127b27bbbd715e /test/tests/coroutines.cpp | |
parent | 89f1d8a7c4c2c41dc1f52c7fbc93c59995460c6f (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/coroutines.cpp')
-rw-r--r-- | test/tests/coroutines.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests/coroutines.cpp b/test/tests/coroutines.cpp index ec534793..24ef46ef 100644 --- a/test/tests/coroutines.cpp +++ b/test/tests/coroutines.cpp @@ -36,7 +36,7 @@ static inline void TestAsyncFileHandleCoroutines() afio::io_service service; // Create an async file i/o handle attached to the i/o service for this thread - afio::async_file_handle h = afio::async_file_handle::async_file(service, {}, "temp", afio::file_handle::mode::write, afio::file_handle::creation::if_needed, afio::file_handle::caching::only_metadata, afio::file_handle::flag::unlink_on_close).value(); + afio::async_file_handle h = afio::async_file_handle::async_file(service, {}, "temp", afio::file_handle::mode::write, afio::file_handle::creation::if_needed, afio::file_handle::caching::only_metadata, afio::file_handle::flag::unlink_on_first_close).value(); // Truncate to 1Mb h.truncate(1024 * 4096); |