aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests/handle.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/unit_tests/handle.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/unit_tests/handle.cpp b/test/unit_tests/handle.cpp
index 13551f4..b0b0c4d 100644
--- a/test/unit_tests/handle.cpp
+++ b/test/unit_tests/handle.cpp
@@ -12,10 +12,16 @@
BOOST_AUTO_TEST_SUITE(handle_tests)
BOOST_AUTO_TEST_CASE(null) {
- { winapi::Handle h{NULL}; }
- BOOST_TEST(true, "NULL handle closed successfully");
- { winapi::Handle h{INVALID_HANDLE_VALUE}; }
- BOOST_TEST(true, "INVALID_HANDLE_VALUE handle closed successfully");
+ {
+ winapi::Handle h{NULL};
+ h.close();
+ BOOST_TEST(true, "NULL handle closed successfully");
+ }
+ {
+ winapi::Handle h{INVALID_HANDLE_VALUE};
+ h.close();
+ BOOST_TEST(true, "INVALID_HANDLE_VALUE handle closed successfully");
+ }
}
BOOST_AUTO_TEST_SUITE_END()