]> xenbits.xensource.com Git - qemu-xen.git/commit
tests/9pfs: guard recent 'Twalk' behaviour fix
authorChristian Schoenebeck <qemu_oss@crudebyte.com>
Tue, 15 Mar 2022 10:08:41 +0000 (11:08 +0100)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Thu, 16 Jun 2022 10:44:52 +0000 (12:44 +0200)
commit15fbff488a908af01210071ffad70f9254d077fc
tree94a695eeb6c0d28a1a0c8212869e9766233033aa
parenta93d2e89e59e67ac5796679fdcef9467e6b2cc55
tests/9pfs: guard recent 'Twalk' behaviour fix

Previous 9p patch fixed 'Twalk' request handling, which was previously not
behaving as specified by the 9p2000 protocol spec. This patch adds a new test
case which guards the new 'Twalk' behaviour in question.

More specifically: it sends a 'Twalk' request where the 1st path component
is valid, whereas the 2nd path component transmitted to server does not
exist. The expected behaviour is that 9p server would respond by sending
a 'Rwalk' response with exactly 1 QID (instead of 'Rlerror' response).

Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <61bde2f44b87e24b70ec098dfb81765665b2dfcb.1647339025.git.qemu_oss@crudebyte.com>
tests/qtest/virtio-9p-test.c