From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13393 invoked by alias); 3 Jun 2010 18:36:19 -0000 Received: (qmail 13385 invoked by uid 22791); 3 Jun 2010 18:36:18 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Jun 2010 18:36:13 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id C6D352BACCD; Thu, 3 Jun 2010 14:36:11 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eoZ85vwtrl3L; Thu, 3 Jun 2010 14:36:11 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 7D7C02BACCC; Thu, 3 Jun 2010 14:36:11 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 9D143F58FA; Thu, 3 Jun 2010 11:36:05 -0700 (PDT) Date: Thu, 03 Jun 2010 18:36:00 -0000 From: Joel Brobecker To: Michael Snyder Cc: "gdb@sourceware.org" Subject: Re: gdb_test_no_output Message-ID: <20100603183605.GH20736@adacore.com> References: <4C07EB44.7010605@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C07EB44.7010605@vmware.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-06/txt/msg00013.txt.bz2 > An oft-used feature of gdb_test is that, if the message string is > supplied but empty (""), no PASS/FAIL output is produced. This is > used when you want to give a command to gdb without actually testing > anything. It's very easy to implement the exact same behavior as gdb_test, but are we certain that this is a valuable capability? Looking at the documentation for that function, one can find: # MESSAGE is an optional message to be printed. If this is # omitted, then the pass/fail messages use the command string as the # message. (If this is the empty string, then sometimes we don't # call pass or fail at all; I don't understand this at all.) The current implementation seems inconsistent; but also I don't think that is really makes that much difference whether the test generates a result or not. But if that's what people want... -- Joel