aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2023-11-06 09:35:11 -0500
committerluigi1111 <luigi1111w@gmail.com>2023-11-06 09:35:11 -0500
commitcab0ebdeb5c25cdbb9d6f242ecff92233a4bd412 (patch)
treeaf470630c7c885b0f0d9b421896e7a3cbde28449 /tests/unit_tests
parentMerge pull request #9044 (diff)
parentunit tests: fix running from pwd and auto test selected location (diff)
downloadmonero-cab0ebdeb5c25cdbb9d6f242ecff92233a4bd412.tar.xz
Merge pull request #9045
504269e unit tests: fix running from pwd and auto test selected location (jeffro256)
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/main.cpp b/tests/unit_tests/main.cpp
index 586cb7c60..4094d79b7 100644
--- a/tests/unit_tests/main.cpp
+++ b/tests/unit_tests/main.cpp
@@ -63,7 +63,7 @@ int main(int argc, char** argv)
::testing::InitGoogleTest(&argc, argv);
// the default test data directory is ../data (relative to the executable's directory)
- const auto default_test_data_dir = boost::filesystem::path(argv[0]).parent_path().parent_path() / "data";
+ const auto default_test_data_dir = boost::filesystem::canonical(argv[0]).parent_path().parent_path() / "data";
po::options_description desc_options("Command line options");
const command_line::arg_descriptor<std::string> arg_data_dir = { "data-dir", "Data files directory", default_test_data_dir.string() };