From 933654fbae37b3726cfa449d187759fe06f8fcc7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 15 Oct 2020 01:10:15 +0300 Subject: test/ -> test/unit_tests/ --- test/unit_tests/handle.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/unit_tests/handle.cpp (limited to 'test/unit_tests/handle.cpp') diff --git a/test/unit_tests/handle.cpp b/test/unit_tests/handle.cpp new file mode 100644 index 0000000..13551f4 --- /dev/null +++ b/test/unit_tests/handle.cpp @@ -0,0 +1,21 @@ +// Copyright (c) 2020 Egor Tensin +// This file is part of the "winapi-common" project. +// For details, see https://github.com/egor-tensin/winapi-common. +// Distributed under the MIT License. + +#include + +#include + +#include + +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"); +} + +BOOST_AUTO_TEST_SUITE_END() -- cgit v1.2.3