From: Xiubo Li Date: Fri, 2 Jun 2023 09:24:14 +0000 (+0800) Subject: test: unmount the mountpoint just before exiting X-Git-Tag: v19.0.0~425^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8f85237c7a37b0d5277fd5cd7a9b8383fefc146e;p=ceph.git test: unmount the mountpoint just before exiting Without this the qa test may fail by evicting the unresponsive client after 300 seconds. Fixes: https://tracker.ceph.com/issues/61394 Signed-off-by: Xiubo Li --- diff --git a/src/test/fs/test_trim_caps.cc b/src/test/fs/test_trim_caps.cc index 11acabb0a58..5f6e1b4204a 100644 --- a/src/test/fs/test_trim_caps.cc +++ b/src/test/fs/test_trim_caps.cc @@ -46,7 +46,6 @@ int main(int argc, char *argv[]) ret = ceph_rename(cmount, "2", "1"); assert(ret >= 0); - ceph_unmount(cmount); printf("child exits\n"); } else { ret = ceph_mkdirs(cmount, "1/2", 0755); @@ -78,8 +77,10 @@ int main(int argc, char *argv[]) ret = ceph_statx(cmount, ".", &stx, 0, 0); assert(ret >= 0); - printf("waiting for crash\n"); - sleep(60); + printf("waiting for 60 seconds to see whether will it crash\n"); + sleep(60); + printf("parent exits\n"); } + ceph_unmount(cmount); return 0; }