]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
qemu-iotests: fix pattern for write test
authorStefan Weil <weil@mail.berlios.de>
Tue, 14 Jul 2009 21:16:00 +0000 (23:16 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 22 Feb 2012 15:17:02 +0000 (16:17 +0100)
The write pattern value 0axb is invalid and evaluates to 0,
so the read check (which uses a correct value of 0xab) will fail.

This failure will only be detected with a separate patch for
qemu-io. Without it, qemu-io cannot interpret hex values
and always uses a pattern value of 0.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
tests/qemu-iotests/002

index adbd85fbdf4321de7b69eee21bec41a315d0d5ee..14025e2ee8f0f0d89963a79d5615fdd241afc675 100755 (executable)
@@ -61,7 +61,7 @@ $QEMU_IO -c "read -pP 0xa 0 $size" $TEST_IMG | _filter_qemu_io
 
 echo
 echo "unaligned pwrite"
-$QEMU_IO -c 'write -pP 0axb 66 42' $TEST_IMG | _filter_qemu_io
+$QEMU_IO -c 'write -pP 0xab 66 42' $TEST_IMG | _filter_qemu_io
 
 echo
 echo "verify pattern"