From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9107 invoked by alias); 11 Feb 2005 19:35:56 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9053 invoked from network); 11 Feb 2005 19:35:52 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 11 Feb 2005 19:35:52 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1BJZpDs017510 for ; Fri, 11 Feb 2005 14:35:52 -0500 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1BJZpO29757; Fri, 11 Feb 2005 14:35:51 -0500 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id DA6207D79; Fri, 11 Feb 2005 14:34:55 -0500 (EST) Message-ID: <420D08DC.3050903@gnu.org> Date: Sat, 12 Feb 2005 03:13:00 -0000 From: Andrew Cagney User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) MIME-Version: 1.0 To: Bob Rossi Cc: gdb-patches@sources.redhat.com Subject: Re: MI testsuite improvements References: <20050210135229.GB28065@white> <420B8026.2060006@gnu.org> <20050210160954.GA28209@white> <420B9DEC.3060501@gnu.org> <20050210195749.GA28864@white> <420BC978.1030904@gnu.org> <20050211172931.GA30352@white> In-Reply-To: <20050211172931.GA30352@white> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-02/txt/msg00113.txt.bz2 Bob Rossi wrote: > On Thu, Feb 10, 2005 at 03:52:08PM -0500, Andrew Cagney wrote: > >>>OO, I see, are you saying the mi-* tests will become the new ones, and >>>the mi2-* are frozen for the mi2-* development cycle? >>> >>>In order to do this for only the new tests, I'll have to add a new >>>parameter to mi_gdb_start to tell it to either open or not open a pty >>>for the inferior. Hope this will be OK. >> >>M'kay. I've thought hard about this one. I'm ok with the theory in that we should have a test of GDB against a "pipe" (i.e., something that doesn't echo). I've reservations about applying it across all tests though. At present you can look at the log and see the exact interaction as you'll get when you run that same GDB in a normal terminal. This change alters that. Can you post an example log so that we can see what it looks like. Andrew > Here is the patch that give's the inferior it's own PTY and only changes > the mi-* testcase's and not the the mi2-* testcases. Just to mention, it > will definatly be more complicated to have only the mi-* testcase's use > the PTY and have the mi2-* not. However, if this is what you want, it is > possible to do. > > Few things to note is that > - mi_gdb_start now takes an optional parameter. This tells it to have > the inferior use a tty or not. I could make this parameter not > optional, and put 'false' everywhere for the mi2-* tests. Is this > what you want? Sorry, don't know what normal conventions are for > Tcl programming, since I'm a newbie. > - mi_gdb_test now takes an IPATTERN parameter, which refer's to the > pattern the inferior must match if the parameter is present. A > PASS is given if the output is matched, otherwise a FAIL. So, when > calling mi_gdb_test, when you give the IPATTERN, 2 PASS's are given > instead of just 1.