From 46ef2fbd49b2e48206a0554ae9a7d84f5961d817 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 15 May 2021 23:36:29 +0300 Subject: use error reporting from winapi-common --- test/unit_tests/CMakeLists.txt | 2 +- test/unit_tests/error.cpp | 23 ----------------------- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 test/unit_tests/error.cpp (limited to 'test/unit_tests') diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index f566c0b..93b7b8b 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -1,6 +1,6 @@ find_package(Boost REQUIRED COMPONENTS filesystem unit_test_framework) -add_executable(unit_tests main.cpp call_stack.cpp dbghelp.cpp error.cpp) +add_executable(unit_tests main.cpp call_stack.cpp dbghelp.cpp) target_link_libraries(unit_tests PRIVATE test_lib winapi_debug) target_link_libraries(unit_tests PRIVATE Boost::disable_autolinking diff --git a/test/unit_tests/error.cpp b/test/unit_tests/error.cpp deleted file mode 100644 index 9faf1e0..0000000 --- a/test/unit_tests/error.cpp +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) 2020 Egor Tensin -// This file is part of the "winapi-debug" project. -// For details, see https://github.com/egor-tensin/winapi-debug. -// Distributed under the MIT License. - -#include - -#include - -#include - -#include - -BOOST_AUTO_TEST_SUITE(error_tests) - -BOOST_AUTO_TEST_CASE(file_not_found) { - const std::string actual{pdb::error::windows(ERROR_FILE_NOT_FOUND, "CreateFileW").what()}; - BOOST_TEST(actual == - "Function CreateFileW failed with error code 2: The system cannot find the file " - "specified."); -} - -BOOST_AUTO_TEST_SUITE_END() -- cgit v1.2.3