Re-organize pubsub tests into a subtest

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Make reap() available to test files if requested

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Second parameter to reap() is the limit (in seconds) to wait for a child

Defaults to 3 seconds.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Allow multiple, concurrent, test redis-server's:

 * each instance gets a different port;
 * make sure log file is per instance;
 * another #13 wake up call.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Make sure only the process that created the redis test server can kill it

Signed-off-by: Pedro Melo <melo@simplicidade.org>
The coderef that kills the test redis-server returns true if it died

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Add test case for #31: wait_for_messages() shouldn't block if sock is dead

Signed-off-by: Pedro Melo <melo@simplicidade.org>