memtest.c fixed to actually use v1 and v2 in memtest_fill_value().
A few compiler warnings suppressed.
Testing framework fixes and improvements backported from 2.6.
Redis test: More reliable BRPOPLPUSH replication test.

Now it uses the new wait_for_condition testing primitive.
Also wait_for_condition implementation was fixed in this commit to properly
escape the expr command and its argument.
A more lightweight implementation of issue 141 regression test.
Properly wait the slave to sync with master in BRPOPLPUSH test.
Redis 2.4.12
Use safe dictionary iterator from KEYS

Every matched key in a KEYS call is checked for expiration. When the key
is set to expire, the call to `getExpire` will assert that the key also
exists in the main dictionary. This in turn causes a rehashing step to
be executed. Rehashing a dictionary when there is an iterator active may
result in the iterator emitting duplicate entries, or not emitting some
entries at all. By using a safe iterator, the rehash step is omitted.
Redis 2.4.13
Allow PREFIX to be overrided in Makefile.
Fix PREFIX typo in Makefile.
Macros ULONG_ONEZERO / ULONG_ZEROONE were inverted in #ifdef to test 32/64 bit arch.
memtest.c: integer overflow fixed.
More incremental active expired keys collection process.

If a large amonut of keys are all expiring about at the same time, the
"active" expired keys collection cycle used to block as far as the
percentage of already expired keys was >= 25% of the total population of
keys with an expire set.

This could block the server even for many seconds in order to reclaim
memory ASAP. The new algorithm uses at max a small amount of
milliseconds per cycle, even if this means reclaiming the memory less
promptly it also means a more responsive server.
Comment improved so that the code goal is more clear. Thx to @agladysh.
If the computer running the Redis test is slow, we revert to --clients 1 to avoid false positives.
redis-cli --pipe for mass import.
redis-cli pipe mode: handle EAGAIN while writing to socket.
redis-cli pipe mode: handle EINTR properly as well so that SIGSTOP/SIGCONT are handled correctly.
Add an implementation of mstime() to 2.4.

Commit 9419eb0 back ported a better expired keys collection algorithm
that is more incremental but for it to compile and work we need an
implementation of the mstime() function that was missing in 2.4.