From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17113 invoked by alias); 13 Nov 2014 23:21:04 -0000 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 Received: (qmail 17028 invoked by uid 89); 13 Nov 2014 23:21:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vc0-f176.google.com Received: from mail-vc0-f176.google.com (HELO mail-vc0-f176.google.com) (209.85.220.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 13 Nov 2014 23:21:02 +0000 Received: by mail-vc0-f176.google.com with SMTP id la4so2955086vcb.7 for ; Thu, 13 Nov 2014 15:21:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=QlxdXBDvYbduHtg9glaDpFpffe3kUSGvJCVSuelHS28=; b=mEWRzWplUfmk4WrXogYMFCep2XAHvo788aBRs+zPvt7znZ/xM4lliNg1MYUTaJujRf TRIYx2fVcXSISXVfRuhWvGN5yqjt+YWdfltyoARcfImMZ1k/aorN3pcKMFkCdWwJiLep PZX8ZzexaPDDpVXoZ0QxwJKRkRIXsat+YH5K+Bsd4n+gW4LWPuL34qvSgInrvfNxO5ar 4EKlx6+MVNigImxvQaRKEzOVqsls6YmpQ+PbBP7XprycjV3VoDNXefveAwfQECYMEu7o 3VJlLh6m+Lu9gptQV321ofI0UJVubdkjgbrQSrwWc1gLlfzfkf6kcuNDJYvV6bu+xY/J qWEg== X-Gm-Message-State: ALoCoQlQzxWA2j1wdnihBYFMrs2Sr5EWhOAQzJvk+1I1t7tpNan6BF3rqiwRQO1NBtK2RDBF/6cr MIME-Version: 1.0 X-Received: by 10.52.28.176 with SMTP id c16mr3460064vdh.18.1415920859909; Thu, 13 Nov 2014 15:20:59 -0800 (PST) Received: by 10.52.114.101 with HTTP; Thu, 13 Nov 2014 15:20:59 -0800 (PST) In-Reply-To: <87wq71ijpu.fsf@igel.home> References: <9588.1415728864@usendtaylorx2l> <87wq71ijpu.fsf@igel.home> Date: Thu, 13 Nov 2014 23:21:00 -0000 Message-ID: Subject: Re: GDB testsuite questions From: Doug Evans To: Andreas Schwab Cc: David Taylor , gdb Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00018.txt.bz2 On Tue, Nov 11, 2014 at 12:08 PM, Andreas Schwab wrote: > David Taylor writes: > >> . how to grab part of the each of the responses to multiple gdb commands >> and do arithmetric on the result to decide whether the test failed or >> passed. > > Use the expect_out variable, there are various examples of its use in > the testsuite. Yeah. testsuite/lib/gdb.exp:get_integer_valueof is my canonical example when I need boilerplate to cut-n-paste from.