aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorSanimir Agovic <sagovic@sourceware.org>2013-09-10 07:32:25 +0000
committerSanimir Agovic <sagovic@sourceware.org>2013-09-10 07:32:25 +0000
commit9295cf6f8e00204740b592f595e62c83a6577b3d (patch)
tree122fca18456bcf7049aef6f20469ab4ee0e141a2 /gdb/testsuite
parentcca931b4c8fccbc362b353baa977c2248fa25fa4 (diff)
downloadgdb-9295cf6f8e00204740b592f595e62c83a6577b3d.zip
gdb-9295cf6f8e00204740b592f595e62c83a6577b3d.tar.gz
gdb-9295cf6f8e00204740b592f595e62c83a6577b3d.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/default.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 499784e..254d56c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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
diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp
index e5194f7..a5f0a95 100644
--- a/gdb/testsuite/gdb.base/default.exp
+++ b/gdb/testsuite/gdb.base/default.exp
@@ -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"