blob: a4fffd265cbf96ff67b9b3350a555b49fdf3ac29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "test_functions.hpp"
BOOST_AFIO_AUTO_TEST_CASE(async_io_works_64_directsync, "Tests that the direct synchronous async i/o implementation works", 60)
{
using namespace BOOST_AFIO_V2_NAMESPACE;
namespace asio = BOOST_AFIO_V2_NAMESPACE::asio;
#ifndef BOOST_AFIO_RUNNING_IN_CI
auto dispatcher = make_dispatcher("file:///", file_flags::os_direct | file_flags::always_sync).get();
std::cout << "\n\n1000 file opens, writes 64Kb, closes, and deletes with direct synchronous i/o:\n";
_1000_open_write_close_deletes(dispatcher, 65536);
#endif
}
|