[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/3] tests/9p: rename test use_after_unlink -> use_file_after_unl
From: |
Christian Schoenebeck |
Subject: |
[PATCH 1/3] tests/9p: rename test use_after_unlink -> use_file_after_unlink |
Date: |
Thu, 9 Jan 2025 13:59:46 +0100 |
To pave the way for adding new test use_dir_after_unlink with subsequent
patch, i.e. making it clear that the existing test is just about unlinked
files, not unlinked directories.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
---
tests/qtest/virtio-9p-test.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/virtio-9p-test.c
index ab3a12c816..07459c5289 100644
--- a/tests/qtest/virtio-9p-test.c
+++ b/tests/qtest/virtio-9p-test.c
@@ -693,8 +693,8 @@ static void fs_unlinkat_hardlink(void *obj, void *data,
g_assert(stat(real_file, &st_real) == 0);
}
-static void fs_use_after_unlink(void *obj, void *data,
- QGuestAllocator *t_alloc)
+static void fs_use_file_after_unlink(void *obj, void *data,
+ QGuestAllocator *t_alloc)
{
QVirtio9P *v9p = obj;
v9fs_set_allocator(t_alloc);
@@ -802,8 +802,8 @@ static void register_virtio_9p_test(void)
qos_add_test("local/hardlink_file", "virtio-9p", fs_hardlink_file, &opts);
qos_add_test("local/unlinkat_hardlink", "virtio-9p", fs_unlinkat_hardlink,
&opts);
- qos_add_test("local/use_after_unlink", "virtio-9p", fs_use_after_unlink,
- &opts);
+ qos_add_test("local/use_file_after_unlink", "virtio-9p",
+ fs_use_file_after_unlink, &opts);
}
libqos_init(register_virtio_9p_test);
--
2.39.5