From afc5442ce138fe605dd375c9c34f5d0202f3a450 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 17 Oct 2020 03:19:02 +0300 Subject: handle_tests: more explicit --- test/unit_tests/handle.cpp | 14 ++++++++++---- 1 file 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() -- cgit v1.2.3