From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21224 invoked by alias); 10 Feb 2005 02:34:04 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21105 invoked from network); 10 Feb 2005 02:33:59 -0000 Received: from unknown (HELO lakermmtao09.cox.net) (68.230.240.30) by sourceware.org with SMTP; 10 Feb 2005 02:33:59 -0000 Received: from white ([68.9.64.121]) by lakermmtao09.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20050210023354.RGGJ10760.lakermmtao09.cox.net@white>; Wed, 9 Feb 2005 21:33:54 -0500 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1Cz49U-00075V-00; Wed, 09 Feb 2005 21:33:56 -0500 Date: Thu, 10 Feb 2005 04:47:00 -0000 From: Bob Rossi To: GDB Cc: cagney@gnu.org Subject: question on mi-console.exp kfail case Message-ID: <20050210023356.GA27218@white> Mail-Followup-To: GDB , cagney@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-SW-Source: 2005-02/txt/msg00067.txt.bz2 Hi, Andrew, I've mailed you personally cause I think you originally wrote the comment below, I've got the entire testsuite passing with the new syntax checker for the MI output. However, I noticed the testcase mi?-console.exp has this, gdb_expect { -re "@\"H\"\r\n.*@\"e\"\r\n.*@\"l\"\r\n.*@\"l\"\r\n.*@\"o\"\r\n.*@\" \"\r\n.*@\"\\\\\\\\\"\r\n.*@\"\\\\\"\"\r\n.*@\"!\"\r\n.*@\"\\\\r\"\r\n.*@\"\\\\n\"\r\n" { pass "Hello message" } -re "Hello" { # Probably a native system where GDB doesn't have direct # control over the inferior console. # For this to work, GDB would need to run the inferior process # under a PTY and then use the even-loops ability to wait on # multiple event sources to channel the output back through the # MI. kfail "gdb/623" "Hello message" } timeout { fail "Hello message (timeout)" } } In particular, I don't know what the first regular expression is, and it's the one that allows for a "pass". What is it trying to match? When I run this testcase, I get, KFAIL: gdb.mi/mi-console.exp: Hello message (PRMS: gdb/623) The output of the inferior is simply "Hello \"!\r\n". Since I have the testsuite set up so the inferior output is redirected to it's own pty, would it be fine for me to match the expected output with a PASS? Or is this a kfail for some reason I just don't understand? Thanks, Bob Rossi