mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 09:17:20 +00:00
406caa5f56
Previously, passing 0 for newlen would not truncate the string at all.
This adds handling of this case, freeing the old string and creating a new empty string.
Other changes:
- Move `src/modules/testmodule.c` to `tests/modules/basics.c`
- Introduce that basic test into the test suite
- Add tests to cover StringTruncate
- Add `test-modules` build target for the main makefile
- Extend `distclean` build target to clean modules too
(cherry picked from commit
|
||
---|---|---|
.. | ||
auth.c | ||
basics.c | ||
blockedclient.c | ||
blockonbackground.c | ||
blockonkeys.c | ||
commandfilter.c | ||
datatype.c | ||
defragtest.c | ||
fork.c | ||
getkeys.c | ||
hash.c | ||
hooks.c | ||
infotest.c | ||
keyspace_events.c | ||
Makefile | ||
misc.c | ||
propagate.c | ||
scan.c | ||
stream.c | ||
test_lazyfree.c | ||
testrdb.c | ||
timer.c | ||
zset.c |