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>
Check errno more thoroughly, better detection of EOF situations in __try...

A more sistematic approch:

 * check by-the-book error conditions;
 * check the real-world conditions we found over the times;
 * make sure __try_read_sock has sane and consistent return codes:
   * undef => EOF;
   * 0 => socket is alive but would block;
   * 1 => there is stuff to read, do it.

Fixes #31.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Tidy everything using tidyall -a; config files included now

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Make sure we kill the server before we leave

A possible fix for #32.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Don't include my own tidyall and perltidyrc:

I prefer to tidy the submissions after I receive them for now.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Update ChangeLog to new release, 1.959

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

    * __try_read_sock: test error conditions more thoroughly (issue #31)
    * Improve Test::SpawnRedisServer: multi-server support
    * tidyall the code and docs
Allow new() name param to be used safely with redis-server < 2.6.9

If client_setname is not supported, the name attr is ignored.
Update Changes for 1.960

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

    * Make the new() name parameter safe to use with all redis-
      server versions
Tweak qr{}, "fix" broken syntax highlight

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Extract wait_one_response() from wait_all_responses()

Signed-off-by: Pedro Melo <melo@simplicidade.org>
Update Changes for 1.961

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

    * Add wait_one_response() for better pipeline management