From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120577 invoked by alias); 18 Jul 2016 09:45:49 -0000 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 Received: (qmail 120567 invoked by uid 89); 18 Jul 2016 09:45:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=procs X-HELO: mail-oi0-f41.google.com Received: from mail-oi0-f41.google.com (HELO mail-oi0-f41.google.com) (209.85.218.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 18 Jul 2016 09:45:38 +0000 Received: by mail-oi0-f41.google.com with SMTP id w18so244729187oiw.3 for ; Mon, 18 Jul 2016 02:45:38 -0700 (PDT) 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:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ljU9eiSIEJS0i6XvlwcfZkw/rj0vDr+j21kuFEbrS+s=; b=efWYM5XCFK8MP+XGi7C8/+kWF2aV1sp/viHf/OQYdje7afeGICQPgGSiDQiwK0WN8z Oz1G0caWcTt+Xll1Anl/31kL45MeweT0jIbVvQEXG8MkRHOaq7asbRAaMqLQRnDOw2yR juHJXZDWSMpMt7XGhjId3bS8Ao9PqHNnOCzeEvKjKFi74/mj9J/fC39ysTg5EL3/ZEnj HsvOKpZWp9d18lbpy2BH+gic2GMOkjWwVHW0NWjOWRivFoS8Tljtii5xfvcXROrGjpNG HDkyzaqZtMZj5RKBwTOK17SXHQRPOsr7ZEH9H9Ieo+xgEzkGLqljv0vnFEJveH7qjcjy J2kg== X-Gm-Message-State: ALyK8tKFv/9wZV/YVPU8CmHzIfEcNaJVwogt6SVYH8Tv1WPZB1UELWyVzwoPIFgn/EK0QgoTXiNUMLGiL2RJog== X-Received: by 10.202.197.66 with SMTP id v63mr7330285oif.131.1468835136764; Mon, 18 Jul 2016 02:45:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.105.138 with HTTP; Mon, 18 Jul 2016 02:45:36 -0700 (PDT) In-Reply-To: <20160718081834.GA26110@host1.jankratochvil.net> References: <20160716131402.GA2961@host1.jankratochvil.net> <20160718081834.GA26110@host1.jankratochvil.net> From: Yao Qi Date: Mon, 18 Jul 2016 09:45:00 -0000 Message-ID: Subject: Re: [testsuite patch] Fix gdb.gdb/selftest.exp for C++-O2-g-built GDB To: Jan Kratochvil Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00183.txt.bz2 On Mon, Jul 18, 2016 at 9:18 AM, Jan Kratochvil wrote: > On Mon, 18 Jul 2016 10:05:58 +0200, Yao Qi wrote: >> I think my patch https://sourceware.org/ml/gdb-patches/2016-07/msg00157.= html >> can fix the fail too, but it is not checked in yet. > > It does not for me: > > FAIL: gdb.gdb/selftest.exp: run until breakpoint at captured_main > WARNING: Couldn't test self > -> > FAIL: gdb.gdb/selftest.exp: unknown source line > FAIL: gdb.gdb/selftest.exp: step into xmalloc call > OK, I think we still need to convert gdb.gdb/selftest.exp using proc do_self_tests to simplify the code, and then, improve procs in lib/selftest-support.exp to handle the fails when GDB is compiled with optimization. What do you think? If you agree on this, I can commit my patch above, and tweak lib/selftest-support.exp to fix your fails. --=20 Yao (=E9=BD=90=E5=B0=A7)