summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-834465.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-834465.t')
-rwxr-xr-xtests/bugs/bug-834465.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/bugs/bug-834465.t b/tests/bugs/bug-834465.t
index 7bbf1a32aa2..70027911498 100755
--- a/tests/bugs/bug-834465.t
+++ b/tests/bugs/bug-834465.t
@@ -31,8 +31,12 @@ build_tester $(dirname $0)/bug-834465.c
TEST $(dirname $0)/bug-834465 $M0/testfile
sdump2=$(generate_mount_statedump $V0);
-nalloc2=`grep -A3 "fuse - usage-type gf_common_mt_fd_lk_ctx_node_t" $sdump2 | grep num_allocs | cut -d '=' -f2`
+# With _gf_free now setting typestr to NULL when num_allocs become 0, it is
+# expected that there wouldn't be any entry for gf_common_mt_fd_lk_ctx_node_t
+# in the statedump file now
+
+nalloc2=`grep -A3 "fuse - usage-type gf_common_mt_fd_lk_ctx_node_t" $sdump2 | wc -l`
TEST [ $nalloc1 -eq $nalloc2 ];
TEST rm -rf $MOUNTDIR/*