aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-09-20 00:09:34 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-09-20 00:12:50 +0300
commit1cbd0a3b824d1821549b4c7ede688f500de25443 (patch)
treed7771d4afeb9609758c9f632674081091f99ed67 /test
parentpdb::file: use wide WinAPI (diff)
downloadwinapi-debug-1cbd0a3b824d1821549b4c7ede688f500de25443.tar.gz
winapi-debug-1cbd0a3b824d1821549b4c7ede688f500de25443.zip
pdb::error: include function name in error message
Diffstat (limited to '')
-rw-r--r--test/unit_tests/error.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit_tests/error.cpp b/test/unit_tests/error.cpp
index f18a2e7..a1ae977 100644
--- a/test/unit_tests/error.cpp
+++ b/test/unit_tests/error.cpp
@@ -14,8 +14,10 @@
BOOST_AUTO_TEST_SUITE(error_tests)
BOOST_AUTO_TEST_CASE(file_not_found) {
- const std::string actual{pdb::error::windows(ERROR_FILE_NOT_FOUND).what()};
- BOOST_TEST(actual == "The system cannot find the file specified.");
+ 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()