valkey/tests
Oran Agra d01f163ce0 fix string to double conversion, stopped parsing on \0 even if the string has more data.
getLongLongFromObject calls string2ll which has this line:
/* Return if not all bytes were used. */
so if you pass an sds with 3 characters "1\01" it will fail.

but getLongDoubleFromObject calls strtold, and considers it ok if eptr[0]==`\0`
i.e. if the end of the string found by strtold ends with null terminator

127.0.0.1:6379> set a 1
OK
127.0.0.1:6379> setrange a 2 2
(integer) 3
127.0.0.1:6379> get a
"1\x002"
127.0.0.1:6379> incrbyfloat a 2
"3"
127.0.0.1:6379> get a
"3"
2017-11-24 09:00:37 +01:00
..
assets Fix test "server is up" detection after logging changes. 2016-12-21 11:05:46 +01:00
cluster Cluster test 12: reshard back just a few slots to speedup the test. 2016-05-05 11:57:49 +02:00
helpers Regression test for issue 417 (memory leak when replicating to DB with id >= 10) 2012-03-30 10:26:07 +02:00
integration Regression test for #3899 fixed. 2017-05-11 16:43:46 +02:00
sentinel Sentinel: new test unit 07 that tests master down conditions. 2016-07-22 16:39:26 +02:00
support Fix test "server is up" detection after logging changes. 2016-12-21 11:05:46 +01:00
tmp
unit fix string to double conversion, stopped parsing on \0 even if the string has more data. 2017-11-24 09:00:37 +01:00
instances.tcl Test: Handle LOADING in restart_instance. 2016-01-15 16:50:35 +01:00
test_helper.tcl Regression test for PSYNC2 issue #3899 added. 2017-04-28 10:40:44 +02:00