This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Keep gdb.base/fileio.exp synched

gdb_test automatically adds "$gdb_prompt $" to the patterns, but
gdb_test_multiple doesn't do that.  As a result, after Andrew's
2004-01-12 change, on some systems things start to get out of sync.
The attached patch fixes this by adding the lost anchors.

Committed as obvious,


Index: testsuite/ChangeLog
from  Mark Kettenis  <>
	* gdb.base/fileio.exp: Add "$gdb_prompt $" anchors to patterns
	used with gdb_test_multiple.

Index: testsuite/gdb.base/fileio.exp
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/fileio.exp,v
retrieving revision 1.6
diff -u -p -r1.6 fileio.exp
--- testsuite/gdb.base/fileio.exp 12 Jan 2004 14:44:49 -0000 1.6
+++ testsuite/gdb.base/fileio.exp 18 Jan 2004 21:12:08 -0000
@@ -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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]