commit 2b5545b90c0d22953ce8cf1906f4ee40c0cf820b Author: Sandra Loosemore Date: Sat Jun 20 10:23:55 2020 -0700 Disable parts of gdb.base/source-dir.exp on remote host. 2020-06-20 Sandra Loosemore gdb/testsuite/ * gdb.base/source-dir.exp (test_truncated_comp_dir): Skip on remote host. Fix search path syntax on Windows host. diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 36662f9..01cba32 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-06-20 Sandra Loosemore + + * gdb.base/source-dir.exp (test_truncated_comp_dir): Skip on + remote host. Fix search path syntax on Windows host. + 2020-06-19 Sandra Loosemore Hafiz Abid Qadeer diff --git a/gdb/testsuite/gdb.base/source-dir.exp b/gdb/testsuite/gdb.base/source-dir.exp index 8f70352..093dda7 100644 --- a/gdb/testsuite/gdb.base/source-dir.exp +++ b/gdb/testsuite/gdb.base/source-dir.exp @@ -81,6 +81,12 @@ proc test_truncated_comp_dir {} { # find the source file no matter what we added to the directory # search path, this should now be fixed. + # All of these pathname and directory manipulations assume + # host == build, so do not attempt this set of tests on remote host. + if [is_remote host] { + return + } + set original_dir [pwd] set working_dir [standard_output_file ""] cd ${working_dir} @@ -108,7 +114,11 @@ proc test_truncated_comp_dir {} { clean_restart ${binfile} - gdb_test_no_output "set directories \$cdir:\$cwd" + if { [ishost *-*-mingw*] } { + gdb_test_no_output "set directories \$cdir;\$cwd" + } else { + gdb_test_no_output "set directories \$cdir:\$cwd" + } gdb_test "show directories" \ "\r\nSource directories searched: \\\$cdir\[:;\]\\\$cwd"