From: Joseph Myers Date: Wed, 26 Aug 2009 19:12:17 +0000 (+0000) Subject: * gdb.mi/mi-basics.exp (test_cwd_specification): Do not test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07ab73a053212a07fe9c93372a0736ad599a5a4c;p=binutils-gdb.git * 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. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7f2c8391f8f..c0954b32c6f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-08-26 Joseph Myers + + * 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 * gdb.cp/cpcompletion.exp (test_class_complete): New procedure. diff --git a/gdb/testsuite/gdb.mi/mi-basics.exp b/gdb/testsuite/gdb.mi/mi-basics.exp index fd9df832123..ffacec22662 100644 --- a/gdb/testsuite/gdb.mi/mi-basics.exp +++ b/gdb/testsuite/gdb.mi/mi-basics.exp @@ -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 {} { diff --git a/gdb/testsuite/gdb.mi/mi2-basics.exp b/gdb/testsuite/gdb.mi/mi2-basics.exp index db22c937455..7d72afb9f5e 100644 --- a/gdb/testsuite/gdb.mi/mi2-basics.exp +++ b/gdb/testsuite/gdb.mi/mi2-basics.exp @@ -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 {} {