summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basic/uss.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/basic/uss.t b/tests/basic/uss.t
index 8c6a8982eea..e59006d1cd8 100644
--- a/tests/basic/uss.t
+++ b/tests/basic/uss.t
@@ -243,4 +243,20 @@ TEST fd_close $fd1;
TEST fd_close $fd2;
TEST fd_close $fd3;
+#test 131
+TEST $CLI snapshot create snap5 $V0
+TEST ls $M0/.history;
+
+function count_snaps
+{
+ local mount_point=$1;
+ local num_snaps;
+
+ num_snaps=$(ls $mount_point/.history | wc -l);
+
+ echo $num_snaps;
+}
+
+EXPECT_WITHIN 30 "5" count_snaps $M0;
+
cleanup;