[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 05/16] tests/9pfs: Set alloc in fs_create_dir()
From: |
Christian Schoenebeck |
Subject: |
[PULL v2 05/16] tests/9pfs: Set alloc in fs_create_dir() |
Date: |
Tue, 20 Oct 2020 18:09:27 +0200 |
From: Greg Kurz <groug@kaod.org>
fs_create_dir() is a top level test function. It should set alloc.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <160321016764.266767.3763279057643874020.stgit@bahia.lan>
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
---
tests/qtest/virtio-9p-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/virtio-9p-test.c
index 59bcea4c30..93a2a4cd76 100644
--- a/tests/qtest/virtio-9p-test.c
+++ b/tests/qtest/virtio-9p-test.c
@@ -1019,6 +1019,7 @@ static void fs_readdir_split_512(void *obj, void *data,
static void fs_create_dir(void *obj, void *data, QGuestAllocator *t_alloc)
{
QVirtio9P *v9p = obj;
+ alloc = t_alloc;
struct stat st;
char *root_path = virtio_9p_test_path("");
char *new_dir = virtio_9p_test_path("01");
--
2.20.1
- [PULL v2 00/16] 9p queue (previous 2020-10-23), Christian Schoenebeck, 2020/10/30
- [PULL v2 01/16] tests/9pfs: fix test dir for parallel tests, Christian Schoenebeck, 2020/10/30
- [PULL v2 02/16] tests/9pfs: fix coverity error in create_local_test_dir(), Christian Schoenebeck, 2020/10/30
- [PULL v2 03/16] tests/9pfs: Force removing of local 9pfs test directory, Christian Schoenebeck, 2020/10/30
- [PULL v2 04/16] tests/9pfs: Factor out do_version() helper, Christian Schoenebeck, 2020/10/30
- [PULL v2 05/16] tests/9pfs: Set alloc in fs_create_dir(),
Christian Schoenebeck <=
- [PULL v2 06/16] tests/9pfs: Factor out do_attach() helper, Christian Schoenebeck, 2020/10/30
- [PULL v2 07/16] tests/9pfs: Turn fs_readdir_split() into a helper, Christian Schoenebeck, 2020/10/30
- [PULL v2 08/16] tests/9pfs: Turn fs_mkdir() into a helper, Christian Schoenebeck, 2020/10/30
- [PULL v2 09/16] tests/9pfs: simplify do_mkdir(), Christian Schoenebeck, 2020/10/30
- [PULL v2 10/16] tests/9pfs: add local Tunlinkat directory test, Christian Schoenebeck, 2020/10/30
- [PULL v2 11/16] tests/9pfs: add local Tlcreate test, Christian Schoenebeck, 2020/10/30
- [PULL v2 12/16] tests/9pfs: add local Tunlinkat file test, Christian Schoenebeck, 2020/10/30
- [PULL v2 13/16] tests/9pfs: add local Tsymlink test, Christian Schoenebeck, 2020/10/30
- [PULL v2 14/16] tests/9pfs: add local Tunlinkat symlink test, Christian Schoenebeck, 2020/10/30
- [PULL v2 15/16] tests/9pfs: add local Tlink test, Christian Schoenebeck, 2020/10/30