summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-04-08 18:06:50 +0200
committerantirez <antirez@gmail.com>2019-04-08 18:06:50 +0200
commitf8a9708aa705b6493ef63a82e42ed428997b817a (patch)
tree15015421adf72373a7577152c36514c9657103ad /tests
parent75648f99a5ba41812c115f83f8b668f030acfaee (diff)
downloadredis-f8a9708aa705b6493ef63a82e42ed428997b817a.tar.gz
ACL: regression test for #5998.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/acl.tcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/acl.tcl b/tests/unit/acl.tcl
index 82c75f82d..90f2c9bbf 100644
--- a/tests/unit/acl.tcl
+++ b/tests/unit/acl.tcl
@@ -108,4 +108,11 @@ start_server {tags {"acl"}} {
assert_match {*+debug|segfault*} $cmdstr
assert_match {*+acl*} $cmdstr
}
+
+ test {ACL regression: memory leaks adding / removing subcommands} {
+ r AUTH default ""
+ r ACL setuser newuser reset -debug +debug|a +debug|b +debug|c
+ r ACL setuser newuser -debug
+ # The test framework will detect a leak if any.
+ }
}