tests: virtio-9p: add WRITE operation test
commit354b86f85f516fecb60185f9c2b8e5933177b300
authorGreg Kurz <groug@kaod.org>
Thu, 1 Feb 2018 20:21:28 +0000 (1 21:21 +0100)
committerGreg Kurz <groug@kaod.org>
Thu, 1 Feb 2018 20:21:28 +0000 (1 21:21 +0100)
treef11d609b40c4d89c985389d93bee8cb55de5292c
parent82469aaefea4f8e7a4469c3ec1f680bbf0341c98
tests: virtio-9p: add WRITE operation test

Trivial test of a successful write.

Signed-off-by: Greg Kurz <groug@kaod.org>
(groug, handle potential overflow when computing request size,
        add missing g_free(buf),
        backend handles one written byte at a time to validate
        the server doesn't do short-reads)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/9pfs/9p-synth.c
hw/9pfs/9p-synth.h
tests/virtio-9p-test.c