2004-01-12 Andrew Cagney <cagney@redhat.com>

* gdb.base/fileio.exp: Update copyright year.  On GNU/Linux, for
	"Renaming a directory to a non-empty directory returns ENOTEMPTY
	or EEXIST", treat EBUSY as an XFAIL.
This commit is contained in:
Andrew Cagney 2004-01-12 14:44:49 +00:00
parent 8325c4dd4e
commit a94154757c
2 changed files with 20 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2004-01-12 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.exp: Update copyright year. On GNU/Linux, for
"Renaming a directory to a non-empty directory returns ENOTEMPTY
or EEXIST", treat EBUSY as an XFAIL.
2004-01-11 Michael Chastain <mec.gnu@mindspring.com> 2004-01-11 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/scope.exp: Remove obsolete setup_xfail for * gdb.base/scope.exp: Remove obsolete setup_xfail for

View file

@ -1,4 +1,4 @@
# Copyright 2002, 2003 # Copyright 2002, 2003, 2004
# Free Software Foundation, Inc. # Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
@ -216,9 +216,19 @@ gdb_test continue \
"Renaming a file to existing directory returns EISDIR" "Renaming a file to existing directory returns EISDIR"
send_gdb "tbreak 388\n" ; gdb_expect -re "$gdb_prompt $" send_gdb "tbreak 388\n" ; gdb_expect -re "$gdb_prompt $"
gdb_test continue \ set test "Renaming a directory to a non-empty directory returns ENOTEMPTY or EEXIST"
"Continuing\\..*rename 3:.*(ENOTEMPTY|EEXIST).*test_rename \\(\\) at.*$srcfile:388.*" \ gdb_test_multiple continue "${test}" {
"Renaming a directory to a non-empty directory returns ENOTEMPTY or EEXIST" -re "Continuing\\..*rename 3:.*(ENOTEMPTY|EEXIST).*test_rename \\(\\) at.*$srcfile:388.*" {
pass "${test}"
}
-re "Continuing\\..*rename 3:.*EBUSY.*test_rename \\(\\) at.*$srcfile:388.*" {
# At least version <= 2.6/2004-01-08 of the Linux Kernel gets
# this wrong (reporting EBUSY) when the file system is NFS
# mounted.
setup_xfail *-*-*linux* gdb/1502
fail "${test}"
}
}
send_gdb "tbreak 393\n" ; gdb_expect -re "$gdb_prompt $" send_gdb "tbreak 393\n" ; gdb_expect -re "$gdb_prompt $"
gdb_test continue \ gdb_test continue \