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

async_io_works_64_sync_test.cpp « tests « test « attic - github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5cd9684cf789fb5e75b3d2d4756898675bf2e276 (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_sync, "Tests that the 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::always_sync).get();
    std::cout << "\n\n1000 file opens, writes 64Kb, closes, and deletes with synchronous i/o:\n";
    _1000_open_write_close_deletes(dispatcher, 65536);
#endif
}