From patchwork Mon Jan 7 14:11:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 209931 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 8869F2C009B for ; Tue, 8 Jan 2013 01:12:16 +1100 (EST) Received: from localhost ([::1]:45265 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsDQy-00016S-TL for incoming@patchwork.ozlabs.org; Mon, 07 Jan 2013 09:12:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsDQi-000154-Nj for qemu-devel@nongnu.org; Mon, 07 Jan 2013 09:11:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsDQh-0007g6-Np for qemu-devel@nongnu.org; Mon, 07 Jan 2013 09:11:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsDQh-0007fw-G7 for qemu-devel@nongnu.org; Mon, 07 Jan 2013 09:11:55 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r07EBsVd022965 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 7 Jan 2013 09:11:55 -0500 Received: from rincewind.home.kraxel.org (ovpn-116-76.ams2.redhat.com [10.36.116.76]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r07EBs3B024096; Mon, 7 Jan 2013 09:11:54 -0500 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 8E915409D3; Mon, 7 Jan 2013 15:11:53 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Mon, 7 Jan 2013 15:11:53 +0100 Message-Id: <1357567913-26175-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1357567913-26175-1-git-send-email-kraxel@redhat.com> References: <1357567913-26175-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 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); }