diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2016-08-17 22:34:04 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2016-08-17 22:34:04 +0300 |
commit | f024cd02a588e5f205298e11ea5e7be6c8247b80 (patch) | |
tree | 963cd5247faac1d8d7c218f4e93e3aa028a3788a /test/tests/section_handle_create_close/kernel_section_handle.cpp.hpp | |
parent | 01dcbd53bf65cffc403ef5cf179c0d2ffa049b6e (diff) |
Added kernel test for kernel_section_handle. Compiles, but untested (tomorrow!).
Diffstat (limited to 'test/tests/section_handle_create_close/kernel_section_handle.cpp.hpp')
-rw-r--r-- | test/tests/section_handle_create_close/kernel_section_handle.cpp.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/tests/section_handle_create_close/kernel_section_handle.cpp.hpp b/test/tests/section_handle_create_close/kernel_section_handle.cpp.hpp new file mode 100644 index 00000000..3bf8c91b --- /dev/null +++ b/test/tests/section_handle_create_close/kernel_section_handle.cpp.hpp @@ -0,0 +1,17 @@ +/* Test kernel for section_handle create and close +(C) 2016 Niall Douglas http://www.nedprod.com/ +File Created: August 2016 +*/ + +#include "../../test_kernel_decl.hpp" + +namespace section_handle_create_close +{ + BOOST_AFIO_TEST_KERNEL_DECL boost::outcome::result<boost::afio::section_handle> test_kernel_section_handle(boost::afio::file_handle &backing, boost::afio::section_handle::extent_type maximum_size, boost::afio::section_handle::flag m) + { + auto h = boost::afio::section_handle::section(backing, maximum_size, m); + if(h) + h.get().close(); + return h; + } +} |