aboutsummaryrefslogtreecommitdiff
path: root/hw/9pfs/9p-synth.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2018-02-01 21:21:28 +0100
committerGreg Kurz <groug@kaod.org>2018-02-01 21:21:28 +0100
commit82469aaefea4f8e7a4469c3ec1f680bbf0341c98 (patch)
treebb14193ec9c412fd8c8899c7b6644145e0c54d2c /hw/9pfs/9p-synth.c
parent2893ddd5988a38196e3ca72853985814de831672 (diff)
downloadqemu-82469aaefea4f8e7a4469c3ec1f680bbf0341c98.zip
qemu-82469aaefea4f8e7a4469c3ec1f680bbf0341c98.tar.gz
qemu-82469aaefea4f8e7a4469c3ec1f680bbf0341c98.tar.bz2
tests: virtio-9p: add LOPEN operation test
Trivial test of a successful open. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/9pfs/9p-synth.c')
-rw-r--r--hw/9pfs/9p-synth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/9pfs/9p-synth.c b/hw/9pfs/9p-synth.c
index dcbd320..f17b74f 100644
--- a/hw/9pfs/9p-synth.c
+++ b/hw/9pfs/9p-synth.c
@@ -541,6 +541,11 @@ static int synth_init(FsContext *ctx, Error **errp)
assert(!ret);
g_free(name);
}
+
+ /* File for LOPEN test */
+ ret = qemu_v9fs_synth_add_file(NULL, 0, QTEST_V9FS_SYNTH_LOPEN_FILE,
+ NULL, NULL, ctx);
+ assert(!ret);
}
return 0;