diff options
Diffstat (limited to 'gdb/testsuite/gdb.threads/tls-sepdebug.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/tls-sepdebug.exp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.threads/tls-sepdebug.exp b/gdb/testsuite/gdb.threads/tls-sepdebug.exp index 14a0c45..4a322e0 100644 --- a/gdb/testsuite/gdb.threads/tls-sepdebug.exp +++ b/gdb/testsuite/gdb.threads/tls-sepdebug.exp @@ -65,16 +65,21 @@ if { [gdb_compile_pthreads \ } set absdir [file dirname [standard_output_file ${binsharedbase}]] +if { [info exists ::env(LD_LIBRARY_PATH)] } { + set ld_library_path $::env(LD_LIBRARY_PATH) +} else { + set ld_library_path "" +} -foreach ld_library_path [list $absdir [relative_filename [pwd] $absdir]] \ +foreach library_path [list $absdir [relative_filename [pwd] $absdir]] \ name { absolute relative } { with_test_prefix $name { # Restart, but defer loading until after setting LD_LIBRARY_PATH. clean_restart - - gdb_test_no_output "set env LD_LIBRARY_PATH=$ld_library_path" \ - "set env LD_LIBRARY_PATH" + gdb_test_no_output \ + "set env LD_LIBRARY_PATH=$ld_library_path:$library_path" \ + "set env LD_LIBRARY_PATH" gdb_load ${binmainfile} |