blob: 149e75037581563e17e8e5a2eeb5e50f3297f758 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include "test_functions.hpp"
BOOST_AFIO_AUTO_TEST_CASE(async_io_torture_direct, "Tortures the direct async i/o implementation", 60)
{
using namespace BOOST_AFIO_V2_NAMESPACE;
namespace asio = BOOST_AFIO_V2_NAMESPACE::asio;
auto dispatcher = make_dispatcher("file:///", file_flags::os_direct).get();
std::cout << "\n\nSustained random direct i/o to 10 files of 10Mb:\n";
evil_random_io(dispatcher, 10, 10 * 1024 * 1024, 4096);
}
|