From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25083 invoked by alias); 4 Dec 2008 01:28:33 -0000 Received: (qmail 25072 invoked by uid 22791); 4 Dec 2008 01:28:32 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Dec 2008 01:27:47 +0000 Received: from zps76.corp.google.com (zps76.corp.google.com [172.25.146.76]) by smtp-out.google.com with ESMTP id mB41RjmE028159 for ; Wed, 3 Dec 2008 17:27:45 -0800 Received: from localhost (ruffy.corp.google.com [172.18.118.116]) by zps76.corp.google.com with ESMTP id mB41Ri6A024534 for ; Wed, 3 Dec 2008 17:27:45 -0800 Received: by localhost (Postfix, from userid 67641) id BCA4B1C7A0F; Wed, 3 Dec 2008 17:27:44 -0800 (PST) To: gdb-patches@sourceware.org Subject: [RFA] Fix to gdb.server/ext-run.exp testcase Message-Id: <20081204012744.BCA4B1C7A0F@localhost> Date: Thu, 04 Dec 2008 01:28:00 -0000 From: dje@google.com (Doug Evans) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00054.txt.bz2 "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 * 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"