From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKntE-0004y3-Qi for qemu-devel@nongnu.org; Thu, 08 Nov 2018 12:14:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKnt1-0002Uz-Tc for qemu-devel@nongnu.org; Thu, 08 Nov 2018 12:14:38 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:39082) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gKnsw-0002SR-Kx for qemu-devel@nongnu.org; Thu, 08 Nov 2018 12:14:26 -0500 Received: by mail-wr1-x443.google.com with SMTP id r10-v6so22076211wrv.6 for ; Thu, 08 Nov 2018 09:14:25 -0800 (PST) References: <20181108163329.19940-1-alex.bennee@linaro.org> <20181108163329.19940-5-alex.bennee@linaro.org> From: Richard Henderson Message-ID: Date: Thu, 8 Nov 2018 18:14:21 +0100 MIME-Version: 1.0 In-Reply-To: <20181108163329.19940-5-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v2 4/6] tests/guest-debug: fix scoping of failcount List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org On 11/8/18 5:33 PM, Alex Bennée wrote: > @@ -16,6 +16,7 @@ def report(cond, msg): > print ("PASS: %s" % (msg)) > else: > print ("FAIL: %s" % (msg)) > + global failcount > failcount += 1 Do we usually prefer such declarations at the start of the function? Anyway, Reviewed-by: Richard Henderson r~