]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qtest/fdc: Support for 2.88MB drives
authorJohn Snow <jsnow@redhat.com>
Fri, 22 Jan 2016 20:51:04 +0000 (15:51 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 25 Jan 2016 19:36:01 +0000 (14:36 -0500)
The old test assumes a 1.44MB drive.
Assert that the QEMU default drive is now either 1.44 or 2.88.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1453495865-9649-12-git-send-email-jsnow@redhat.com

tests/fdc-test.c

index b5a4696d86dadb41ad3f9cea1f36d505bc63124a..526d4595c37cf4b04924cbc82c135d45490c0ff5 100644 (file)
@@ -267,7 +267,7 @@ static void test_cmos(void)
     uint8_t cmos;
 
     cmos = cmos_read(CMOS_FLOPPY);
-    g_assert(cmos == 0x40);
+    g_assert(cmos == 0x40 || cmos == 0x50);
 }
 
 static void test_no_media_on_start(void)