blob: 40edf7d633e1e37f95c9842739007d4a80755042 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "test_functions.hpp"
BOOST_AFIO_AUTO_TEST_CASE(async_io_works_1_autoflush, "Tests that the autoflush 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::sync_on_close).get();
std::cout << "\n\n1000 file opens, writes 1 byte, closes, and deletes with autoflush i/o:\n";
_1000_open_write_close_deletes(dispatcher, 1);
#endif
}
|