summaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2003-04-14 14:04:06 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2003-04-14 14:04:06 +0000
commitb432c94b976ce739a117631c6c8dcd724e11a595 (patch)
treec72fa81984b2f9b99f4edf99cad1bc68b4e8aaac /gdb/testsuite
parent2468656b3dac7d2102fd6a0e06fdb20250eded09 (diff)
downloadgdb-b432c94b976ce739a117631c6c8dcd724e11a595.tar.gz
2003-04-14 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/attach.exp: Add new message from ptrace in case of attaching to nonexistent process.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/attach.exp2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 0bd7b355898..cf15071e40d 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-14 Elena Zannoni <ezannoni@redhat.com>
+
+ * gdb.base/attach.exp: Add new message from ptrace in case of
+ attaching to nonexistent process.
+
2003-04-11 Jim Blandy <jimb@redhat.com>
* gdb.c++/derivation.exp, gdb.c++/overload.exp,
diff --git a/gdb/testsuite/gdb.base/attach.exp b/gdb/testsuite/gdb.base/attach.exp
index 4019feab43e..c561080f4fe 100644
--- a/gdb/testsuite/gdb.base/attach.exp
+++ b/gdb/testsuite/gdb.base/attach.exp
@@ -123,6 +123,8 @@ proc do_attach_tests {} {
}
-re "Attaching to.*, process 0.*denied.*$gdb_prompt $"\
{pass "attach to nonexistent process is prohibited"}
+ -re "Attaching to.*, process 0.*Operation not permitted.*$gdb_prompt $"\
+ {pass "attach to nonexistent process is prohibited"}
-re "Attaching to.*, process .*couldn't open /proc file.*$gdb_prompt $"\
{
# Response expected from /proc-based systems.