* gdb.mi/mi-basics.exp (test_cwd_specification): Do not test
authorJoseph Myers <joseph@codesourcery.com>
Wed, 26 Aug 2009 19:12:17 +0000 (19:12 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 26 Aug 2009 19:12:17 +0000 (19:12 +0000)
environment-pwd for remote host.
* gdb.mi/mi2-basics.exp (test_cwd_specification): Likewise.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-basics.exp
gdb/testsuite/gdb.mi/mi2-basics.exp

index 7f2c839..c0954b3 100644 (file)
@@ -1,3 +1,9 @@
+2009-08-26  Joseph Myers  <joseph@codesourcery.com>
+
+       * gdb.mi/mi-basics.exp (test_cwd_specification): Do not test
+       environment-pwd for remote host.
+       * gdb.mi/mi2-basics.exp (test_cwd_specification): Likewise.
+
 2009-08-24  Keith Seitz  <keiths@redhat.com>
 
        * gdb.cp/cpcompletion.exp (test_class_complete): New procedure.
index fd9df83..ffacec2 100644 (file)
@@ -184,9 +184,13 @@ proc test_cwd_specification {} {
              "205\\\^done" \
              "environment-cd arg operation"
 
-    mi_gdb_test "206-environment-pwd" \
+    # The canonical name of the working directory may differ on a
+    # remote host from that on the build system.
+    if ![is_remote host] {
+       mi_gdb_test "206-environment-pwd" \
              "206\\\^done,cwd=\"${escapedobjdir}\"" \
              "environment-pwd operation"
+    }
 }
 
 proc test_path_specification {} {
index db22c93..7d72afb 100644 (file)
@@ -186,9 +186,13 @@ proc test_cwd_specification {} {
              "205\\\^done" \
              "environment-cd arg operation"
 
-    mi_gdb_test "206-environment-pwd" \
+    # The canonical name of the working directory may differ on a
+    # remote host from that on the build system.
+    if ![is_remote host] {
+       mi_gdb_test "206-environment-pwd" \
              "206\\\^done,cwd=\"${escapedobjdir}\"" \
              "environment-pwd operation"
+    }
 }
 
 proc test_path_specification {} {