blob: a1ae977f77107e2fd3cb7801164ce20f08a528e9 (
plain) (
tree)
|
|
// Copyright (c) 2020 Egor Tensin <Egor.Tensin@gmail.com>
// This file is part of the "PDB repository" project.
// For details, see https://github.com/egor-tensin/pdb-repo.
// Distributed under the MIT License.
#include <pdb/all.hpp>
#include <boost/test/unit_test.hpp>
#include <windows.h>
#include <string>
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()
|