summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/cpp/test_path_std.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/cpp/test_path_std.cpp b/test/cpp/test_path_std.cpp
index 0c8b2d7..50ccad4 100644
--- a/test/cpp/test_path_std.cpp
+++ b/test/cpp/test_path_std.cpp
@@ -473,10 +473,11 @@ main()
}
for (const auto& join : joins) {
- const Path l = join.lhs ? Path{join.lhs} : Path{};
- const Path r = join.rhs ? Path{join.rhs} : Path{};
+ char* const joined = zix_path_join(nullptr, join.lhs, join.rhs);
+ const Path l = join.lhs ? Path{join.lhs} : Path{};
+ const Path r = join.rhs ? Path{join.rhs} : Path{};
- assert(equal(l / r, zix_path_join(nullptr, join.lhs, join.rhs)));
+ assert(equal(l / r, joined));
}
for (const auto& relatives : lexical_relatives) {