Match the working directory on remote host
authorYao Qi <yao@codesourcery.com>
Sun, 2 Nov 2014 13:08:06 +0000 (21:08 +0800)
committerYao Qi <yao@codesourcery.com>
Sun, 2 Nov 2014 13:08:06 +0000 (21:08 +0800)
commit6ce8c98020188a7585c24db289191c5c10371e58
treef5ea651a5927b1936ec6c6405bff68ca7a06d801
parenta218b38d2e3f2f7c55b59b380267fdf7fffdb966
Match the working directory on remote host

The test in gdb.python/python.exp tests "extended-prompt" and expects
working directory is printed.  However, working directory on remote
host doesn't have "gdb/testsuite", so the test fails on remote host
like:

set extended-prompt \w ^M
^M
/home/yao FAIL: gdb.python/python.exp: set extended prompt working directory (timeout)

This patch is to get the working directory first, and use it to match
the output of "set extended-prompt \\w ".  It works for remote host
and non remote host.

gdb/testsuite:

2014-11-02  Yao Qi  <yao@codesourcery.com>

* gdb.python/python.exp: Get working directory and match the
output of "set extended-prompt \\w " with it.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/python.exp
This page took 0.02548 seconds and 4 git commands to generate.