Fix test-case gdb.guile/scm-parameter.exp for remote host by taking into
account that gdb_reinitialize_dir has no effect for remote host.
Tested on x86_64-linux.
}
# We use "." here instead of ":" so that this works on win32 too.
-set escaped_directory [string_to_regexp "$srcdir/$subdir"]
-gdb_test "guile (print (parameter-value \"directories\"))" "$escaped_directory.\\\$cdir.\\\$cwd"
+if { [is_remote host] } {
+ # Proc gdb_reinitialize_dir has no effect for remote host.
+ gdb_test "guile (print (parameter-value \"directories\"))" \
+ "\\\$cdir.\\\$cwd"
+} else {
+ set escaped_directory [string_to_regexp "$srcdir/$subdir"]
+ gdb_test "guile (print (parameter-value \"directories\"))" \
+ "$escaped_directory.\\\$cdir.\\\$cwd"
+}
# Test a simple boolean parameter, and parameter? while we're at it.