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.
+2013-11-26 Andrew Burgess <aburgess@broadcom.com>
+
+ * gdb.base/setshow.exp: Add $gdb_prompt to the patterns in
+ gdb_test_multiple.
+
2013-11-26 Tom Tromey <tromey@redhat.com>
* gdb.dwarf2/dw2-unspecified-ret-addr.S: Remove.
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
}
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
}