diff options
Diffstat (limited to 'attic/test/tests/async_io_torture_autoflush_test.cpp')
-rw-r--r-- | attic/test/tests/async_io_torture_autoflush_test.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/attic/test/tests/async_io_torture_autoflush_test.cpp b/attic/test/tests/async_io_torture_autoflush_test.cpp new file mode 100644 index 00000000..8bbe0557 --- /dev/null +++ b/attic/test/tests/async_io_torture_autoflush_test.cpp @@ -0,0 +1,12 @@ +#include "test_functions.hpp" + +BOOST_AFIO_AUTO_TEST_CASE(async_io_torture_autoflush, "Tortures the autoflush async i/o implementation", 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\nSustained random autoflush i/o to 10 files of 1Mb:\n"; + evil_random_io(dispatcher, 10, 1 * 1024 * 1024); +#endif +}
\ No newline at end of file |