aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests/fixtures.hpp
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-13 20:09:59 +0200
committerEgor Tensin <egor@tensin.name>2026-06-13 20:19:01 +0200
commit6c287673ed3163d70ced1ec067526758337fa67c (patch)
tree2a542b3ce7ddfd73e3a2c9a02fb57fae4c31ffd4 /test/unit_tests/fixtures.hpp
parentupdate .git-blame-ignore-revs (diff)
downloadwinapi-common-6c287673ed3163d70ced1ec067526758337fa67c.tar.gz
winapi-common-6c287673ed3163d70ced1ec067526758337fa67c.zip
boost::format -> std::format
Diffstat (limited to 'test/unit_tests/fixtures.hpp')
-rw-r--r--test/unit_tests/fixtures.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit_tests/fixtures.hpp b/test/unit_tests/fixtures.hpp
index ce8e1f4..a3b62be 100644
--- a/test/unit_tests/fixtures.hpp
+++ b/test/unit_tests/fixtures.hpp
@@ -14,6 +14,7 @@
#include <boost/test/unit_test.hpp>
#include <exception>
+#include <format>
#include <stdexcept>
#include <string>
@@ -25,7 +26,7 @@ public:
try {
winapi::File::remove(m_path);
} catch (const std::exception& e) {
- BOOST_TEST_MESSAGE("Couldn't remove file " << m_path.get() << ": " << e.what());
+ BOOST_TEST_MESSAGE(std::format("Couldn't remove file {}: {}", m_path.get(), e.what()));
}
}