aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/162
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2019-10-02 19:40:52 +0200
committerMax Reitz <mreitz@redhat.com>2019-10-10 12:13:23 +0200
commit35f05b2e2ee59e077bf949057dc0959ddd6e5249 (patch)
tree5374075ab3c680bedb9ba5e3bb42317cf56d910c /tests/qemu-iotests/162
parentda51e998f849fa7cd543e82d2301a9031fbe48e5 (diff)
iotests/162: Fix for newer Linux 5.3+
Linux 5.3 has made 0.0.0.0/8 a working IPv4 subnet. As such, "42" is now a valid host, and the connection to it will (hopefully) time out over a long period rather than quickly return with EINVAL. So let us use a negative integer for testing that NBD will not crash when it receives integer hosts. This way, the connection will again fail quickly and reliably. Signed-off-by: Max Reitz <mreitz@redhat.com> Message-id: 20191002174052.5773-1-mreitz@redhat.com Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/162')
-rwxr-xr-xtests/qemu-iotests/1622
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/162 b/tests/qemu-iotests/162
index 2d719afbed..c0053ed975 100755
--- a/tests/qemu-iotests/162
+++ b/tests/qemu-iotests/162
@@ -46,7 +46,7 @@ echo '=== NBD ==='
# NBD expects all of its arguments to be strings
# So this should not crash
-$QEMU_IMG info 'json:{"driver": "nbd", "host": 42}'
+$QEMU_IMG info 'json:{"driver": "nbd", "host": -1}'
# And this should not treat @port as if it had not been specified
# (We need to set up a server here, because the error message for "Connection