qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH 2/2] m48t59-test: don't touch watchdog
Date: Thu, 10 Jan 2013 15:49:40 +0100	[thread overview]
Message-ID: <1357829380-17599-3-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1357829380-17599-1-git-send-email-kraxel@redhat.com>

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 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

  parent reply	other threads:[~2013-01-10 14:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10 14:49 [Qemu-devel] [PULL 0/2] two little testcase fixes Gerd Hoffmann
2013-01-10 14:49 ` [Qemu-devel] [PATCH 1/2] rtc-test: skip year-2038 overflow check in case time_t is 32bit only Gerd Hoffmann
2013-01-10 15:03   ` Andreas Färber
2013-01-11  7:55     ` Gerd Hoffmann
2013-01-10 14:49 ` Gerd Hoffmann [this message]
2013-01-10 20:57 ` [Qemu-devel] [PULL 0/2] two little testcase fixes Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2013-01-07 14:11 [Qemu-devel] [PATCH 0/2] fix tests Gerd Hoffmann
2013-01-07 14:11 ` [Qemu-devel] [PATCH 2/2] m48t59-test: don't touch watchdog Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1357829380-17599-3-git-send-email-kraxel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).