From patchwork Thu Jan 10 14:49:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 211089 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CADBE2C034B for ; Fri, 11 Jan 2013 03:45:52 +1100 (EST) Received: from localhost ([::1]:43474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtJaF-00077c-8L for incoming@patchwork.ozlabs.org; Thu, 10 Jan 2013 09:58:19 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtJZa-0005OB-E9 for qemu-devel@nongnu.org; Thu, 10 Jan 2013 09:57:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtJZX-0008S7-Ud for qemu-devel@nongnu.org; Thu, 10 Jan 2013 09:57:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtJZX-0008Rs-NO for qemu-devel@nongnu.org; Thu, 10 Jan 2013 09:57:35 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0AEvZYT032299 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 10 Jan 2013 09:57:35 -0500 Received: from rincewind.home.kraxel.org (ovpn-116-92.ams2.redhat.com [10.36.116.92]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r0AEvYvU005497; Thu, 10 Jan 2013 09:57:34 -0500 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 52F4641C7A; Thu, 10 Jan 2013 15:49:40 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Thu, 10 Jan 2013 15:49:40 +0100 Message-Id: <1357829380-17599-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1357829380-17599-1-git-send-email-kraxel@redhat.com> References: <1357829380-17599-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 2/2] m48t59-test: don't touch watchdog X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Gerd Hoffmann --- tests/m48t59-test.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/tests/m48t59-test.c b/tests/m48t59-test.c index 5179681..d79f554 100644 --- a/tests/m48t59-test.c +++ b/tests/m48t59-test.c @@ -233,6 +233,11 @@ static void fuzz_registers(void) reg = (uint8_t)g_test_rand_int_range(0, 16); val = (uint8_t)g_test_rand_int_range(0, 256); + if (reg == 7) { + /* watchdog setup register, may trigger system reset, skip */ + continue; + } + cmos_write(reg, val); cmos_read(reg); }