Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Fix to gdb.server/ext-run.exp testcase
@ 2008-12-04  1:28 Doug Evans
  2008-12-04 16:53 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2008-12-04  1:28 UTC (permalink / raw)
  To: gdb-patches

"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"


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFA] Fix to gdb.server/ext-run.exp testcase
  2008-12-04  1:28 [RFA] Fix to gdb.server/ext-run.exp testcase Doug Evans
@ 2008-12-04 16:53 ` Pedro Alves
  0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2008-12-04 16:53 UTC (permalink / raw)
  To: gdb-patches; +Cc: Doug Evans

On Thursday 04 December 2008 01:27:44, Doug Evans wrote:
> "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?

Ok.  Thanks.

-- 
Pedro Alves


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-04 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-04  1:28 [RFA] Fix to gdb.server/ext-run.exp testcase Doug Evans
2008-12-04 16:53 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox