test: adjust 'cd' regexpr to match an optional canonically pathname
authorSanimir Agovic <sagovic@sourceware.org>
Tue, 10 Sep 2013 07:32:25 +0000 (07:32 +0000)
committerSanimir Agovic <sagovic@sourceware.org>
Tue, 10 Sep 2013 07:32:25 +0000 (07:32 +0000)
commit9295cf6f8e00204740b592f595e62c83a6577b3d
tree122fca18456bcf7049aef6f20469ab4ee0e141a2
parentcca931b4c8fccbc362b353baa977c2248fa25fa4
test: adjust 'cd' regexpr to match an optional canonically pathname

New regexpr now correctly deals with trailing canonical pathname.

Before only the following output was matched:
(gdb) cd
Working directory /users/foo

In addition it now matches an optional trailing canonical pathname:
(gdb) cd
Working directory /users/foo
 (canonically /nfs/users/foo).

Triggered by `realpath .` != `pwd`

2013-09-10  Sanimir Agovic  <sanimir.agovic@intel.com>

testsuite/
* gdb.base/default.exp: Adjust regexpr for 'cd' to match optional
canonical pathname.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/default.exp