]> xenbits.xensource.com Git - libvirt.git/commitdiff
test: qemu: Make sure that wr_highest_offset_valid gets set properly
authorPeter Krempa <pkrempa@redhat.com>
Fri, 26 Jun 2015 14:40:29 +0000 (16:40 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 26 Jun 2015 14:41:24 +0000 (16:41 +0200)
Remove one instance of the field being present so that the code that
sets that flag can be tested.

tests/qemumonitorjsontest.c

index 96e6175d9027037667fb1bdf264ee7934ab6bd55..ded04234ff3d4a6b01b9500d5d4e23ec28995fe0 100644 (file)
@@ -1501,7 +1501,6 @@ testQemuMonitorJSONqemuMonitorJSONGetBlockStatsInfo(const void *data)
         "            \"parent\": {"
         "                \"stats\": {"
         "                    \"flush_total_time_ns\": 0,"
-        "                    \"wr_highest_offset\": 0,"
         "                    \"wr_total_time_ns\": 0,"
         "                    \"wr_bytes\": 0,"
         "                    \"rd_total_time_ns\": 0,"
@@ -1579,7 +1578,7 @@ testQemuMonitorJSONqemuMonitorJSONGetBlockStatsInfo(const void *data)
 
     CHECK("virtio-disk0", 1279, 28505088, 640616474, 174, 2845696, 530699221, 0, 0, 5256018944ULL, true)
     CHECK("virtio-disk1", 85, 348160, 8232156, 0, 0, 0, 0, 0, 0ULL, true)
-    CHECK("ide0-1-0", 16, 49250, 1004952, 0, 0, 0, 0, 0, 0ULL, true)
+    CHECK("ide0-1-0", 16, 49250, 1004952, 0, 0, 0, 0, 0, 0ULL, false)
 
     ret = 0;