diff options
author | Greg Kurz <groug@kaod.org> | 2018-02-01 21:21:28 +0100 |
---|---|---|
committer | Greg Kurz <groug@kaod.org> | 2018-02-01 21:21:28 +0100 |
commit | 354b86f85f516fecb60185f9c2b8e5933177b300 (patch) | |
tree | f11d609b40c4d89c985389d93bee8cb55de5292c /hw/9pfs/9p-synth.h | |
parent | 82469aaefea4f8e7a4469c3ec1f680bbf0341c98 (diff) | |
download | qemu-354b86f85f516fecb60185f9c2b8e5933177b300.zip qemu-354b86f85f516fecb60185f9c2b8e5933177b300.tar.gz qemu-354b86f85f516fecb60185f9c2b8e5933177b300.tar.bz2 |
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>
Diffstat (limited to 'hw/9pfs/9p-synth.h')
-rw-r--r-- | hw/9pfs/9p-synth.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/9pfs/9p-synth.h b/hw/9pfs/9p-synth.h index 2a8d6fd..a74032d 100644 --- a/hw/9pfs/9p-synth.h +++ b/hw/9pfs/9p-synth.h @@ -53,5 +53,6 @@ int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode, #define QTEST_V9FS_SYNTH_WALK_FILE "WALK%d" #define QTEST_V9FS_SYNTH_LOPEN_FILE "LOPEN" +#define QTEST_V9FS_SYNTH_WRITE_FILE "WRITE" #endif |