diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-05 18:18:12 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-05 18:18:12 +0200 |
| commit | 7543163a4da54f7b9ca9813fc425baebdcaa2da9 (patch) | |
| tree | 94c4eba7fbd72c4f272895e1d9536a7884cfb5da /test/unit_tests/paths.hpp | |
| parent | use regular `throw` instead of the Boost function (diff) | |
| download | winapi-debug-7543163a4da54f7b9ca9813fc425baebdcaa2da9.tar.gz winapi-debug-7543163a4da54f7b9ca9813fc425baebdcaa2da9.zip | |
upgrade to std::filesystem
Diffstat (limited to '')
| -rw-r--r-- | test/unit_tests/paths.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit_tests/paths.hpp b/test/unit_tests/paths.hpp index f9494a6..4f7537a 100644 --- a/test/unit_tests/paths.hpp +++ b/test/unit_tests/paths.hpp @@ -5,14 +5,15 @@ #pragma once -#include <boost/filesystem.hpp> #include <boost/test/unit_test.hpp> -using path = boost::filesystem::path; +#include <filesystem> + +using path = std::filesystem::path; class Paths { public: - using path = boost::filesystem::path; + using path = std::filesystem::path; static Paths& get() { static Paths instance; @@ -27,7 +28,7 @@ public: private: static path get_executable_path() { const auto argv0 = boost::unit_test::framework::master_test_suite().argv[0]; - return boost::filesystem::system_complete(argv0); + return std::filesystem::absolute(argv0); } Paths(const Paths&) = delete; |
