Commit 6b6c2c36 authored by Роман Донченко's avatar Роман Донченко Committed by Petr Machata

Fix XDG_CONFIG_DIRS.exp failing when ltrace needs LD_LIBRARY_PATH to run

parent a6f401ec
......@@ -765,7 +765,7 @@ proc ld_library_path { args } {
if {[string length $libunwind_LD_LIBRARY_PATH] > 0} {
lappend ALL_LIBRARY_PATHS $libunwind_LD_LIBRARY_PATH
}
lappend ALL_LIBRARY_PATHS $args
lappend ALL_LIBRARY_PATHS {*}$args
join $ALL_LIBRARY_PATHS ":"
}
......
......@@ -24,7 +24,7 @@ setenv XDG_CONFIG_DIRS "blah"
ltraceRun -L -- $bin
unsetenv XDG_CONFIG_DIRS
if {[catch "exec $LTRACE -L -F blah -- $bin" output]} {
if {[catch {exec env LD_LIBRARY_PATH=[ld_library_path] $LTRACE -L -F blah -- $bin} output]} {
ltraceMatch [ltraceSource ltrace "$output"] {
{blah == 1}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment