[libcxx] Don't assume cwd name in std::filesystem tests
authorSergej Jaskiewicz <jaskiewiczs@icloud.com>
Wed, 12 Feb 2020 13:07:30 +0000 (16:07 +0300)
committerSergej Jaskiewicz <jaskiewiczs@icloud.com>
Wed, 12 Feb 2020 13:08:17 +0000 (16:08 +0300)
commit377a1c80e98951bb1c46b54c1f14400fba7f576f
treef8ba4c2a246b58504c1f0dc43e5fdd02be47cfab
parent35f02aa0213c41c4c408108e277e473de954dc5e
[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
libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.proximate/proximate.pass.cpp