diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-17 03:19:02 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-17 10:32:04 +0300 |
commit | afc5442ce138fe605dd375c9c34f5d0202f3a450 (patch) | |
tree | 6d7bdc06b11abd0d2d46f920fb78dd5e37b28a19 /test | |
parent | clang: don't break long string literals (diff) | |
download | winapi-common-afc5442ce138fe605dd375c9c34f5d0202f3a450.tar.gz winapi-common-afc5442ce138fe605dd375c9c34f5d0202f3a450.zip |
handle_tests: more explicit
Diffstat (limited to '')
-rw-r--r-- | test/unit_tests/handle.cpp | 14 |
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() |