From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21035 invoked by alias); 17 Jan 2007 00:59:37 -0000 Received: (qmail 21027 invoked by uid 22791); 17 Jan 2007 00:59:37 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 Jan 2007 00:59:31 +0000 Received: from kahikatea.snap.net.nz (unknown [123.255.62.204]) by viper.snap.net.nz (Postfix) with ESMTP id 6EA833D828E; Wed, 17 Jan 2007 13:59:27 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 950B94F711; Wed, 17 Jan 2007 13:59:24 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17837.29931.145384.679968@kahikatea.snap.net.nz> Date: Wed, 17 Jan 2007 00:59:00 -0000 To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Subject: Re: MI failures related to string printing In-Reply-To: References: <200701121351.29310.vladimir@codesourcery.com> <20070116204407.784494F6C7@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 22.0.92.10 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: 2007-01/txt/msg00375.txt.bz2 > Don't you think that a test that randomly fails depending on compiler > version and the address at which the binary happens to load is completely > useless. It has value because it doesn't fail for everyone. > If I see it fail, how do I know if it signifies a bug in my (new) > code, or not? By keeping the previous results and comparing them. I always get many fails when I run the testsuite. > > I'm sure it can be modified to always pass but that's only worthwhile if > > it remains a meaningful test. I don't know how to devise such a test > > because it doesn't fail for me now. > > You just need to make sure the testcase never uses char* values that point > to a single char, by making all single-char value char arrays of size 2 > where the second element is zero, or by any other approach. I'm not sure that this would work and anyway I couldn't test it, but you could. -- Nick http://www.inet.net.nz/~nickrob