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)
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

index 499784e5edb9a66d62d68e6e29227eb3aee4b9cb..254d56c9bf8f19d18f4f9b42fffa6c5490ede0a5 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-10  Sanimir Agovic  <sanimir.agovic@intel.com>
+
+       * gdb.base/default.exp: Adjust regexpr for 'cd' to match optional
+       canonical pathname.
+
 2013-09-04  Doug Evans  <dje@google.com>
 
        * gdb.python/py-events.py (exit_handler): Verify we get the expected
index e5194f700b0e06cb6c5534aaca8085c502cca539..a5f0a953c07ee5679ef23c55713f74b2d109d76f 100644 (file)
@@ -83,7 +83,7 @@ gdb_test "call" "The history is empty..*" "call"
 gdb_test "catch" "Catch requires an event name..*" "catch"
 
 #test cd
-gdb_test "cd" "Working directory \[^\r\n\]*\\."
+gdb_test "cd" "Working directory \[^\r\n\]*\(\r\n \\(canonically \[^\r\n\]*\\)\)?\\."
 
 #test clear
 gdb_test "clear" "No source file specified..*" "clear"
This page took 0.048366 seconds and 4 git commands to generate.