redict/tests/unit/type
perryitay 0c10f0e1c0
Fix crashes when list-compress-depth is used. (#9779)
Recently we started using list-compress-depth in tests (was completely untested till now).
Turns this triggered test failures with the external mode, since the tests left the setting enabled
and then it was used in other tests (specifically the fuzzer named "Stress tester for #3343-alike bugs").

This PR fixes the issue of the `recompress` flag being left set by mistake, which caused the code to
later to compress the head or tail nodes (which should never be compressed)

The solution is to reset the recompress flag when it should have been (when it was decided not to compress).

Additionally we're adding some assertions and improve the tests so in order to catch other similar bugs.
2021-11-18 18:09:30 +02:00
..
hash.tcl Replace all usage of ziplist with listpack for t_hash (#8887) 2021-08-10 09:18:49 +03:00
incr.tcl decrby LLONG_MIN caused nagation overflow. (#9577) 2021-10-03 09:38:05 +03:00
list-2.tcl Minor improvements for list-2 test (#8156) 2020-12-08 16:26:38 +02:00
list-3.tcl Fix crashes when list-compress-depth is used. (#9779) 2021-11-18 18:09:30 +02:00
list-common.tcl list test split into smaller parts 2011-07-11 11:30:46 +02:00
list.tcl Fix crashes when list-compress-depth is used. (#9779) 2021-11-18 18:09:30 +02:00
set.tcl Adds limit to SINTERCARD/ZINTERCARD. (#9425) 2021-09-16 14:07:08 +03:00
stream-cgroups.tcl Connection leak in external tests. (#9777) 2021-11-15 11:07:43 +02:00
stream.tcl Connection leak in external tests. (#9777) 2021-11-15 11:07:43 +02:00
string.tcl Obliterate STRALGO! add LCS (which only works on keys) (#9799) 2021-11-18 10:47:49 +02:00
zset.tcl Fixes ZPOPMIN/ZPOPMAX wrong replies when count is 0 with non-zset (#9711) 2021-11-18 10:13:16 +02:00