Skip to content

Commit 0cc6a2a

Browse files
committed
test(e2e): honor isolated mcpp home in libc poison
1 parent 4e39a8e commit 0cc6a2a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/e2e/156_nested_ld_library_path.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
# dynamic linker (trace signature: bare `__vdso_time` line).
88
set -e
99

10-
GLIBC_LIB=$(ls -d "$HOME"/.mcpp/registry/data/xpkgs/xim-x-glibc/*/lib64 2>/dev/null | head -1)
10+
# The selected mcpp state may be intentionally isolated from HOME. Poison with
11+
# a libc from that same state so mcpp itself can start; the regression begins
12+
# when the nested host tools inherit the private loader path.
13+
MCPP_STATE_HOME=${MCPP_HOME:-"$HOME/.mcpp"}
14+
GLIBC_LIB=$(ls -d "$MCPP_STATE_HOME"/registry/data/xpkgs/xim-x-glibc/*/lib64 2>/dev/null | head -1)
1115
if [[ -z "$GLIBC_LIB" ]]; then
1216
echo "SKIP: no private glibc payload installed"
1317
exit 0

0 commit comments

Comments
 (0)