From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Gerd Hoffmann 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> Subject: [Qemu-devel] [PATCH 2/2] m48t59-test: don't touch watchdog List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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); } -- 1.7.1