llvm-project
8baae027 - [libc][realpath][test] Allow test directory to contain symlinks (#216828)

Commit
25 days ago
[libc][realpath][test] Allow test directory to contain symlinks (#216828) CI for https://github.com/llvm/llvm-project/pull/212925 failed because the `libc-riscv32-qemu-yocto-fullbuild-dbg` buildbot on Yocto uses a symlink for `/tmp` to `/var/volatile/tmp` ([source](https://github.com/openembedded/openembedded-core/blob/07a342aa80c7349dd014f743a695a5e006add8df/meta/recipes-core/initscripts/initscripts-1.0/volatiles#L32)). It's fair enough that a system may define `/tmp` as a symlink, so this PR updates the realpath tests to call `realpath` on the test directory to resolve symlinks. This PR also updates the test to use `libc_make_test_file_path` instead of `/tmp`. Previously, the tests used `/tmp` because `libc_make_test_file_path` might have symlinks in it. Since we fully resolve symlinks now, we can use the more standard approach now.
Author
Parents
Loading