aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@broadcom.com>2013-11-26 16:28:33 +0000
committerAndrew Burgess <aburgess@broadcom.com>2013-11-26 16:36:21 +0000
commitd24a9f159c4b62ea5a64f619bd2090bbc98d8abd (patch)
tree2e8f61eb7bcc2e624a7545f507ac7fb86e11a54e /gdb/testsuite/gdb.base
parent492e19d098f4bf4f22bac22815e9cb117be55b33 (diff)
downloadgdb-d24a9f159c4b62ea5a64f619bd2090bbc98d8abd.zip
gdb-d24a9f159c4b62ea5a64f619bd2090bbc98d8abd.tar.gz
gdb-d24a9f159c4b62ea5a64f619bd2090bbc98d8abd.tar.bz2
Tighten regexp in gdb.base/setshow.exp
https://sourceware.org/ml/gdb-patches/2013-11/msg00817.html gdb/testsuite/ChangeLog * gdb.base/setshow.exp: Add $gdb_prompt to the patterns in gdb_test_multiple.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/setshow.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/setshow.exp b/gdb/testsuite/gdb.base/setshow.exp
index d9e71d3..305356b 100644
--- a/gdb/testsuite/gdb.base/setshow.exp
+++ b/gdb/testsuite/gdb.base/setshow.exp
@@ -169,7 +169,7 @@ gdb_test "show history expansion on" "History expansion on command input is on.*
set HOME ""
set test "show environment HOME"
gdb_test_multiple $test $test {
- -re "\nHOME = (.*).\n.*" {
+ -re "\nHOME = (\[^\r\n\]*)\[\r\n\]+$gdb_prompt $" {
set HOME $expect_out(1,string)
pass $test
}
@@ -185,7 +185,7 @@ gdb_test "show history filename" \
set PWD ""
set test "show working directory"
gdb_test_multiple "pwd" $test {
- -re "\nWorking directory (.*)..\n.*" {
+ -re "\nWorking directory (\[^\r\n\]*)\\.\[\r\n\]+$gdb_prompt $" {
set PWD $expect_out(1,string)
pass $test
}