This is the mail archive of the gdb-patches@sourceware.org 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] Fix to gdb.server/ext-run.exp testcase


"info os processes" on one linux I use gives:

(gdb) info os processes
pid        user       command
1          root       init [2]

The testcase currently looks for /sbin/init.

Ok to check in?

2008-12-03  Doug Evans  <dje@google.com>

	* gdb.server/ext-run.exp: Relax regexp for init program.

Index: ext-run.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.server/ext-run.exp,v
retrieving revision 1.2
diff -u -p -r1.2 ext-run.exp
--- ext-run.exp	2 Dec 2008 07:57:38 -0000	1.2
+++ ext-run.exp	4 Dec 2008 01:12:24 -0000
@@ -46,7 +46,7 @@ gdb_test "run" "Breakpoint.* main .*" "c
 
 if { [istarget *-*-linux*] } {
     # On Linux, gdbserver can also report the list of processes.
-    gdb_test "info os processes" ".*pid +user +command.*1 +root +/sbin/init.*" "get process list"
+    gdb_test "info os processes" ".*pid +user +command.*1 +root +\[/a-z\]*init.*" "get process list"
 }
 
 gdb_test "kill" "" "kill" "Kill the program being debugged.*" "y"


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