]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/source-dir.exp
Disable parts of gdb.base/source-dir.exp on remote host
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / source-dir.exp
index 8f70352dcca26dcd419a6e3de79a62f49701e804..093dda7b9232eeadf5b98068d437f7fdb1bad084 100644 (file)
@@ -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"