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

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2016-08-17 22:34:04 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2016-08-17 22:34:04 +0300
commitf024cd02a588e5f205298e11ea5e7be6c8247b80 (patch)
tree963cd5247faac1d8d7c218f4e93e3aa028a3788a /test/tests/section_handle_create_close/kernel_section_handle.cpp.hpp
parent01dcbd53bf65cffc403ef5cf179c0d2ffa049b6e (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.hpp17
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;
+ }
+}