mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
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>
This commit is contained in:
parent
2893ddd598
commit
82469aaefe
3 changed files with 53 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -52,5 +52,6 @@ int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode,
|
|||
/* qtest stuff */
|
||||
|
||||
#define QTEST_V9FS_SYNTH_WALK_FILE "WALK%d"
|
||||
#define QTEST_V9FS_SYNTH_LOPEN_FILE "LOPEN"
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue