Skip to content

Commit 377a1c8

Browse files
committed
[libcxx] Don't assume cwd name in std::filesystem tests
Summary: In `std::filesystem::proximate` tests we assume that the current working directory's name is `fs.op.proximate`. This is fine when we're running the tests locally. However, if we're running those tests on a remote machine via SSH, the directory layout may be different. For example, currently we copy each test executable individually into a temporary directory on the target board using SCP, so the assumption about the working directory name doesn't necessarily hold. This patch is the only thing that is necessary for all libc++ tests to pass when run remotely. Reviewers: ldionne, EricWF, mclow.lists Reviewed By: ldionne, EricWF Subscribers: christof, dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D74348
1 parent 35f02aa commit 377a1c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.proximate/proximate.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ TEST_CASE(basic_test) {
7171
{cwd, "a", ".."},
7272
{parent_cwd, "a", "../.."},
7373
{"a", cwd, "a"},
74-
{"a", parent_cwd, "fs.op.proximate/a"},
74+
{"a", parent_cwd, curdir / "a"},
7575
{"/", "a", dot_dot_to_root / ".."},
7676
{"/", "a/b", dot_dot_to_root / "../.."},
7777
{"/", "a/b/", dot_dot_to_root / "../.."},

0 commit comments

Comments
 (0)