This is the mail archive of the gdb-patches@sources.redhat.com 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]

[RFA/TESTSUITE] attach.exp


The new GNU/Linux kernels produce a different error message when you
try to attach to a non existent process.

OK?

elena

        * gdb.base/attach.exp: Add new message from ptrace in case of
        attaching to nonexistent process.

Index: attach.exp
===================================================================
RCS file: /cvs/uberbaum/gdb/testsuite/gdb.base/attach.exp,v
retrieving revision 1.8
diff -u -p -r1.8 attach.exp
--- attach.exp	22 Dec 2002 23:53:48 -0000	1.8
+++ attach.exp	8 Apr 2003 21:47:40 -0000
@@ -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.


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