aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/089
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qemu-iotests/089')
-rwxr-xr-xtests/qemu-iotests/08920
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/qemu-iotests/089 b/tests/qemu-iotests/089
index 0b059ab..aa1ba4a 100755
--- a/tests/qemu-iotests/089
+++ b/tests/qemu-iotests/089
@@ -82,6 +82,26 @@ $QEMU_IO_PROG --cache $CACHEMODE \
$QEMU_IO -c 'read -P 42 0 512' "$TEST_IMG" | _filter_qemu_io
+echo
+echo "=== Testing correct handling of 'backing':null ==="
+echo
+
+_make_test_img -b "$TEST_IMG.base" $IMG_SIZE
+
+# This should read 42
+$QEMU_IO -c 'read -P 42 0 512' "$TEST_IMG" | _filter_qemu_io
+
+# This should read 0
+$QEMU_IO -c 'read -P 0 0 512' "json:{\
+ 'driver': '$IMGFMT',
+ 'file': {
+ 'driver': 'file',
+ 'filename': '$TEST_IMG'
+ },
+ 'backing': null
+}" | _filter_qemu_io
+
+
# Taken from test 071
echo
echo "=== Testing blkdebug ==="