From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18752 invoked by alias); 21 Apr 2004 16:40:50 -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 18727 invoked from network); 21 Apr 2004 16:40:49 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 21 Apr 2004 16:40:49 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i3LGemFe027562 for ; Wed, 21 Apr 2004 12:40:48 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i3LGelw13904 for ; Wed, 21 Apr 2004 12:40:47 -0400 Received: from cygbert.vinschen.de (vpn50-21.rdu.redhat.com [172.16.50.21]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id i3LGekC29382 for ; Wed, 21 Apr 2004 09:40:46 -0700 Received: by cygbert.vinschen.de (Postfix, from userid 500) id 276935811C; Wed, 21 Apr 2004 18:40:40 +0200 (CEST) Date: Wed, 21 Apr 2004 18:33:00 -0000 From: Corinna Vinschen To: gdb@sources.redhat.com Subject: Question about args.exp test Message-ID: <20040421164040.GS1307@cygbert.vinschen.de> Reply-To: gdb@sources.redhat.com Mail-Followup-To: gdb@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-RedHat-Spam-Score: 0 X-SW-Source: 2004-04/txt/msg00122.txt.bz2 Hi, that's perhaps a dumb question but I don't understand what gdb.base/args.exp is testing in case of the 2nd and 3rd test. Both tests are, according to the comment, testing to give empty arguments to the inferior. The args application just prints argc and the whole argv vector unchanged to stdout. Well, that's ok, but I don't understand this: args.exp does not test the empty arguments being empty, but instead it tests if '', two apostrophes, are printed. But that's not what the args application prints. It just prints the empty string and a \n. I'm just looking for arm and the arm simulator returns actually empty lines where the empty arguments are printed. That looks correct to me, but the tests fail, due to the missing ''. Why is args.exp expecting two apostrophes and who's supposed to add them? The args testapplication apparently isn't. Corinna