From: Mark Kettenis Date: Sun, 18 Jan 2004 21:17:57 +0000 (+0000) Subject: * gdb.base/fileio.exp: Add "$gdb_prompt $" anchors to patterns X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7049b4b8ac9039dc4f09e312e68fedc8227caac8;p=binutils-gdb.git * gdb.base/fileio.exp: Add "$gdb_prompt $" anchors to patterns used with gdb_test_multiple. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d5fb5af1452..96e1f98d7e7 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2004-01-18 Mark Kettenis + * gdb.base/fileio.exp: Add "$gdb_prompt $" anchors to patterns + used with gdb_test_multiple. + * gdb.base/gdb1476.exp: Accept alternat pattern for failed memory read at address 0. This fixes PR testsuite/1504. diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp index 80dc6186957..2a717bff182 100644 --- a/gdb/testsuite/gdb.base/fileio.exp +++ b/gdb/testsuite/gdb.base/fileio.exp @@ -218,10 +218,10 @@ gdb_test continue \ send_gdb "tbreak 388\n" ; gdb_expect -re "$gdb_prompt $" set test "Renaming a directory to a non-empty directory returns ENOTEMPTY or EEXIST" gdb_test_multiple continue "${test}" { - -re "Continuing\\..*rename 3:.*(ENOTEMPTY|EEXIST).*test_rename \\(\\) at.*$srcfile:388.*" { + -re "Continuing\\..*rename 3:.*(ENOTEMPTY|EEXIST).*test_rename \\(\\) at.*$srcfile:388.*$gdb_prompt $" { pass "${test}" } - -re "Continuing\\..*rename 3:.*EBUSY.*test_rename \\(\\) at.*$srcfile:388.*" { + -re "Continuing\\..*rename 3:.*EBUSY.*test_rename \\(\\) at.*$srcfile:388.*$gdb_prompt $" { # At least version <= 2.6/2004-01-08 of the Linux Kernel gets # this wrong (reporting EBUSY) when the file system is NFS # mounted.