m48t59-test: don't touch watchdog
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Jan 2013 16:12:18 +0000 (17:12 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 10 Jan 2013 14:23:39 +0000 (15:23 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
tests/m48t59-test.c

index 5179681..d79f554 100644 (file)
@@ -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);
     }