aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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()